@lucid-agents/taskmarket 1.51.0 → 1.52.0
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/agent-compatibility.json +1 -1
- package/dist/{api-YDCOGL5P.js → api-Z62WOOLX.js} +2 -2
- package/dist/{channels-K4AKXBRM.js → channels-GBQLRNED.js} +4 -4
- package/dist/{chunk-O56EUZVG.js → chunk-523X35HE.js} +4 -4
- package/dist/{chunk-CBLGBZ67.js → chunk-6UDGOZHP.js} +3 -3
- package/dist/{chunk-5EUSU7QA.js → chunk-G4MAYAZW.js} +13 -25
- package/dist/{chunk-LC5VE4EQ.js → chunk-JAFX6DHV.js} +1313 -1252
- package/dist/{chunk-VQ6X6FME.js → chunk-K3Y73YWH.js} +2 -2
- package/dist/{chunk-7OC73WUN.js → chunk-KU66VTU6.js} +1 -1
- package/dist/{chunk-YCWWBCXW.js → chunk-LZ2P3FIL.js} +5 -5
- package/dist/{chunk-LL2SVODK.js → chunk-N5L4URHF.js} +1 -1
- package/dist/{chunk-JPAOL63U.js → chunk-PXQP62WF.js} +3 -3
- package/dist/{chunk-HZ6KGGNX.js → chunk-QSOEZINA.js} +8 -8
- package/dist/{chunk-CCK7JYVX.js → chunk-RMK5EAPR.js} +1 -1
- package/dist/{chunk-DE5YYAHJ.js → chunk-XREEFYEQ.js} +6 -2
- package/dist/{doctor-UA5ST7KE.js → doctor-3LW4N6KW.js} +9 -9
- package/dist/index.js +46 -21
- package/dist/{launch-TMSW4WPX.js → launch-2YOUARKA.js} +11 -11
- package/dist/pi-extensions/xgate.cjs +19 -10
- package/dist/{read-auth-PN6FJNKK.js → read-auth-IBCYKPKD.js} +3 -3
- package/dist/{reconcile-VVNRBYY7.js → reconcile-7DVTUPJ6.js} +4 -4
- package/dist/{status-VQ7V3CIS.js → status-3GNXUWOL.js} +9 -9
- package/dist/{sync-pull-UKSVJFMY.js → sync-pull-MIEB5XAF.js} +4 -4
- package/dist/{task-access-grants-QBORD7RL.js → task-access-grants-5B3CSCP4.js} +2 -2
- package/package.json +2 -2
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
parseFailureBody,
|
|
15
15
|
readFailureBody,
|
|
16
16
|
withErrorContext
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-XREEFYEQ.js";
|
|
18
|
+
import "./chunk-JAFX6DHV.js";
|
|
19
19
|
import "./chunk-S7SJMJ2I.js";
|
|
20
20
|
export {
|
|
21
21
|
ApiError,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
selectRail,
|
|
11
11
|
uncertainPurchases,
|
|
12
12
|
withdrawalHatch
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-PXQP62WF.js";
|
|
14
|
+
import "./chunk-G4MAYAZW.js";
|
|
15
|
+
import "./chunk-XREEFYEQ.js";
|
|
16
|
+
import "./chunk-JAFX6DHV.js";
|
|
17
17
|
import "./chunk-YM4S6IE4.js";
|
|
18
18
|
import "./chunk-XJOB4NMV.js";
|
|
19
19
|
import "./chunk-S7SJMJ2I.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
signReadAuth
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K3Y73YWH.js";
|
|
5
5
|
import {
|
|
6
6
|
MPP_TEMPO_CHARGE_SCHEME,
|
|
7
7
|
X402PayError,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
readMppTempoChallenge,
|
|
21
21
|
reconcileX402Payment,
|
|
22
22
|
withX402FileLock
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-G4MAYAZW.js";
|
|
24
24
|
import {
|
|
25
25
|
ApiError,
|
|
26
26
|
apiGet,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
withChainId,
|
|
42
42
|
withIdempotentWrite,
|
|
43
43
|
withTapSignature
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-XREEFYEQ.js";
|
|
45
45
|
import {
|
|
46
46
|
ComputeCreditBuyOutputSchema,
|
|
47
47
|
ComputeCreditPricingSchema,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
IntentStatusResponseSchema,
|
|
50
50
|
apiErrorEnvelopeOf,
|
|
51
51
|
getTaskmarketHome
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-JAFX6DHV.js";
|
|
53
53
|
|
|
54
54
|
// src/lib/x402-fee.ts
|
|
55
55
|
import { randomUUID as randomUUID4 } from "crypto";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
unsafeHostPath,
|
|
9
9
|
withFileLock,
|
|
10
10
|
writeAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RMK5EAPR.js";
|
|
12
12
|
import {
|
|
13
13
|
buyComputeCredit,
|
|
14
14
|
fetchComputePricing,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
loadComputeCreditConfig,
|
|
17
17
|
onComputeBalanceObserved,
|
|
18
18
|
readComputeCreditStatus
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-523X35HE.js";
|
|
20
20
|
import {
|
|
21
21
|
getTaskmarketHome
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JAFX6DHV.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentLaunchError
|
|
25
25
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getTaskmarketHome,
|
|
12
12
|
mppAttributionMemo,
|
|
13
13
|
parseMppChallenge
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JAFX6DHV.js";
|
|
15
15
|
|
|
16
16
|
// ../../packages/x402-payer/dist/api.js
|
|
17
17
|
var X402_PAYER_API_VERSION = 1;
|
|
@@ -4284,6 +4284,16 @@ function x402FailureReason(headers) {
|
|
|
4284
4284
|
}
|
|
4285
4285
|
return void 0;
|
|
4286
4286
|
}
|
|
4287
|
+
function sendPrepared(fetchImpl, prepared, headers, signal) {
|
|
4288
|
+
const init = {
|
|
4289
|
+
method: prepared.method,
|
|
4290
|
+
headers,
|
|
4291
|
+
body: prepared.body,
|
|
4292
|
+
redirect: "error",
|
|
4293
|
+
signal
|
|
4294
|
+
};
|
|
4295
|
+
return fetchImpl(new Request(prepared.url, init), init);
|
|
4296
|
+
}
|
|
4287
4297
|
function x402ChallengeBodyError(body) {
|
|
4288
4298
|
try {
|
|
4289
4299
|
const value = JSON.parse(Buffer.from(body).toString("utf8"));
|
|
@@ -4453,17 +4463,7 @@ async function runX402Exchange(runtime, input, options, context) {
|
|
|
4453
4463
|
throw aborted();
|
|
4454
4464
|
let response;
|
|
4455
4465
|
try {
|
|
4456
|
-
response = await fetchImpl
|
|
4457
|
-
new Request(prepared.url, {
|
|
4458
|
-
method: prepared.method,
|
|
4459
|
-
headers: unpaidHeaders,
|
|
4460
|
-
body: prepared.body,
|
|
4461
|
-
redirect: "error",
|
|
4462
|
-
signal
|
|
4463
|
-
}),
|
|
4464
|
-
// See the paid request below: without it, a garbage collection can cut off the abort.
|
|
4465
|
-
{ signal }
|
|
4466
|
-
);
|
|
4466
|
+
response = await sendPrepared(fetchImpl, prepared, unpaidHeaders, signal);
|
|
4467
4467
|
} catch (error) {
|
|
4468
4468
|
if (signal.aborted)
|
|
4469
4469
|
throw aborted();
|
|
@@ -4817,19 +4817,7 @@ async function runX402Exchange(runtime, input, options, context) {
|
|
|
4817
4817
|
await transition({ state: "dispatched" });
|
|
4818
4818
|
let paid;
|
|
4819
4819
|
try {
|
|
4820
|
-
paid = await fetchImpl
|
|
4821
|
-
new Request(prepared.url, {
|
|
4822
|
-
method: prepared.method,
|
|
4823
|
-
headers: paidHeaders,
|
|
4824
|
-
body: prepared.body,
|
|
4825
|
-
redirect: "error",
|
|
4826
|
-
signal
|
|
4827
|
-
}),
|
|
4828
|
-
// The signal again, so fetch follows it directly. A Request follows its signal through an
|
|
4829
|
-
// AbortController that only the Request holds strongly: once fetch has copied it, a garbage
|
|
4830
|
-
// collection drops that controller, and aborting `signal` no longer cancels the request.
|
|
4831
|
-
{ signal }
|
|
4832
|
-
);
|
|
4820
|
+
paid = await sendPrepared(fetchImpl, prepared, paidHeaders, signal);
|
|
4833
4821
|
} catch (error) {
|
|
4834
4822
|
await transition({ state: "unknown", error: errorMessage(error) });
|
|
4835
4823
|
throw fail("outcome_uncertain", X402_OUTCOME_UNKNOWN_MESSAGE, { cause: error, pending: true });
|