@lucid-agents/taskmarket 1.46.0 → 1.48.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-56KWZFR4.js → api-2PFUP432.js} +2 -2
- package/dist/{channels-YKCZU2Q7.js → channels-Z6VN7FXP.js} +4 -4
- package/dist/{chunk-66HELSIU.js → chunk-AB3BDUMS.js} +3 -3
- package/dist/{chunk-7KZOHF7R.js → chunk-DKBI3SE3.js} +1 -1
- package/dist/{chunk-Y3B7POF2.js → chunk-GPKAJ7QH.js} +41 -5
- package/dist/{chunk-HFG7TSVD.js → chunk-JXBWKGXC.js} +10996 -10673
- package/dist/{chunk-MMODVSSS.js → chunk-KTT6PSHQ.js} +1 -1
- package/dist/{chunk-3MITXF2F.js → chunk-QRNIBDYX.js} +3 -3
- package/dist/{chunk-AS3N5L25.js → chunk-SV6LNVI5.js} +2 -2
- package/dist/{chunk-MUFEOBRQ.js → chunk-UJ3FRWUU.js} +7 -13
- package/dist/{chunk-64NUUQBC.js → chunk-VENFZBAZ.js} +1 -1
- package/dist/{chunk-DPJIDICA.js → chunk-VYYJ7FUB.js} +3 -3
- package/dist/{chunk-E3J2J3PZ.js → chunk-WPJRL4F7.js} +8 -8
- package/dist/{chunk-O5C2CWWL.js → chunk-YAUYTYQI.js} +5 -5
- package/dist/{doctor-TA3AZMPJ.js → doctor-6ASEDCCF.js} +8 -8
- package/dist/index.js +1141 -626
- package/dist/{launch-2RINYQTU.js → launch-JVXJSXJF.js} +11 -11
- package/dist/pi-extensions/xgate.cjs +657 -215
- package/dist/{read-auth-FFCZKAFN.js → read-auth-OQ3VVA4V.js} +3 -3
- package/dist/{reconcile-O6LVP2Z3.js → reconcile-TJ2VXC6R.js} +4 -4
- package/dist/{status-FRMTSDIG.js → status-LU7AKAKJ.js} +8 -8
- package/dist/{sync-pull-OUXRL6A2.js → sync-pull-52G7XZZT.js} +4 -4
- package/dist/{task-access-grants-WV3HVN5V.js → task-access-grants-HUYBGG5E.js} +2 -2
- package/package.json +1 -1
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
listX402Payments,
|
|
11
11
|
loadX402Policy,
|
|
12
12
|
rpcUrlForNetwork
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GPKAJ7QH.js";
|
|
14
14
|
import {
|
|
15
15
|
createWalletAccountFromKeystore,
|
|
16
16
|
keystoreExists,
|
|
17
17
|
loadKeystore
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UJ3FRWUU.js";
|
|
19
19
|
import {
|
|
20
20
|
getTaskmarketHome,
|
|
21
21
|
taskmarketChain
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JXBWKGXC.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentLaunchError
|
|
25
25
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -2,12 +2,12 @@ import { createRequire as __tmCreateRequire } from 'node:module'; import { fileU
|
|
|
2
2
|
import {
|
|
3
3
|
createWalletAccountFromKeystore,
|
|
4
4
|
loadKeystore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UJ3FRWUU.js";
|
|
6
6
|
import {
|
|
7
7
|
READ_AUTH_ADDRESS_HEADER,
|
|
8
8
|
READ_AUTH_SIGNATURE_HEADER,
|
|
9
9
|
buildReadAuthMessage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JXBWKGXC.js";
|
|
11
11
|
|
|
12
12
|
// src/lib/read-auth.ts
|
|
13
13
|
async function signReadAuth(signal) {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
paymentProtocolFor,
|
|
10
10
|
taskmarketChain,
|
|
11
11
|
verifierProviderId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JXBWKGXC.js";
|
|
13
13
|
|
|
14
14
|
// src/lib/idempotency.ts
|
|
15
15
|
import { randomUUID } from "crypto";
|
|
@@ -465,13 +465,7 @@ function validateTapSignatureAgent(value) {
|
|
|
465
465
|
}
|
|
466
466
|
return trimmed;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
return `${new URL(apiBase).origin}/api/tap/simulated/${chainId}`;
|
|
470
|
-
}
|
|
471
|
-
function tapSignatureAgentFor(stored, apiBase = apiUrl) {
|
|
472
|
-
if (stored.simulated === true && stored.chainId !== void 0) {
|
|
473
|
-
return simulatedTapSignatureAgent(apiBase(), stored.chainId);
|
|
474
|
-
}
|
|
468
|
+
function tapSignatureAgentFor(stored) {
|
|
475
469
|
return stored.signatureAgent;
|
|
476
470
|
}
|
|
477
471
|
var TAP_CREATE_ALGORITHMS = ["ecdsa-p256-sha256", "ed25519"];
|
|
@@ -503,18 +497,16 @@ function tapKeySummary(stored) {
|
|
|
503
497
|
importedAt: stored.importedAt,
|
|
504
498
|
/** The chain the CLI enrolled the key on, or null when it did not enrol it. */
|
|
505
499
|
chainId: stored.chainId ?? null,
|
|
506
|
-
/** True for a key id from the simulated directory, null when the CLI did not enrol it. */
|
|
507
|
-
simulated: stored.simulated ?? null,
|
|
508
500
|
/** The directory URL given at import for `Signature-Agent`, or null when none was. */
|
|
509
501
|
signatureAgent: stored.signatureAgent ?? null
|
|
510
502
|
};
|
|
511
503
|
}
|
|
512
|
-
async function loadTapSigningKey(keystore, deviceKey, taskId
|
|
504
|
+
async function loadTapSigningKey(keystore, deviceKey, taskId) {
|
|
513
505
|
const stored = keystore.tapKey;
|
|
514
506
|
if (!stored) return void 0;
|
|
515
507
|
if (stored.keyId === null) throw new TapKeyNotEnrolledError(taskId);
|
|
516
508
|
const dek = deviceKey ? await deviceKey() : await fetchDeviceKey(keystore.deviceId, keystore.apiToken, keystore.keyServerUrl);
|
|
517
|
-
const signatureAgent = tapSignatureAgentFor(stored
|
|
509
|
+
const signatureAgent = tapSignatureAgentFor(stored);
|
|
518
510
|
return {
|
|
519
511
|
keyId: stored.keyId,
|
|
520
512
|
alg: stored.alg,
|
|
@@ -678,7 +670,7 @@ var TapKeyNotEnrolledError = class extends Error {
|
|
|
678
670
|
code = "tap_key_not_enrolled";
|
|
679
671
|
constructor(taskId) {
|
|
680
672
|
super(
|
|
681
|
-
`${taskId ? `Task ${taskId} requires TAP verification and the` : "The"} TAP key is not enrolled: it has no key id. Enrol it with 'taskmarket tap enrol'
|
|
673
|
+
`${taskId ? `Task ${taskId} requires TAP verification and the` : "The"} TAP key is not enrolled: it has no key id. Enrol it with 'taskmarket tap enrol', or import a key the verifier issued with 'taskmarket tap import'. Nothing was sent.`
|
|
682
674
|
);
|
|
683
675
|
this.name = "TapKeyNotEnrolledError";
|
|
684
676
|
}
|
|
@@ -913,6 +905,7 @@ async function apiPut(path2, body, options) {
|
|
|
913
905
|
}
|
|
914
906
|
|
|
915
907
|
export {
|
|
908
|
+
getKeystorePath,
|
|
916
909
|
generateKeypair,
|
|
917
910
|
encryptPrivateKey,
|
|
918
911
|
decryptPrivateKey,
|
|
@@ -924,6 +917,7 @@ export {
|
|
|
924
917
|
keystoreExists,
|
|
925
918
|
readKeystoreNetwork,
|
|
926
919
|
idempotencyKeyForError,
|
|
920
|
+
newIdempotencyKey,
|
|
927
921
|
resolveIdempotencyKey,
|
|
928
922
|
withIdempotentWrite,
|
|
929
923
|
idempotencyHeaders,
|
|
@@ -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
|
getTaskmarketHome
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JXBWKGXC.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentLaunchError
|
|
7
7
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
readMppTempoChallenge,
|
|
18
18
|
reconcileX402Payment,
|
|
19
19
|
withX402FileLock
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GPKAJ7QH.js";
|
|
21
21
|
import {
|
|
22
22
|
ApiError,
|
|
23
23
|
apiGet,
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
withChainId,
|
|
39
39
|
withIdempotentWrite,
|
|
40
40
|
withTapSignature
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-UJ3FRWUU.js";
|
|
42
42
|
import {
|
|
43
43
|
ComputeCreditBuyOutputSchema,
|
|
44
44
|
ComputeCreditPricingSchema,
|
|
45
45
|
ComputeCreditStatusOutputSchema,
|
|
46
46
|
apiErrorEnvelopeOf,
|
|
47
47
|
getTaskmarketHome
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-JXBWKGXC.js";
|
|
49
49
|
|
|
50
50
|
// src/lib/x402-fee.ts
|
|
51
51
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
x402FeePost
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VYYJ7FUB.js";
|
|
5
5
|
import {
|
|
6
6
|
signReadAuth
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SV6LNVI5.js";
|
|
8
8
|
import {
|
|
9
9
|
taskAccessGrantHeaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DKBI3SE3.js";
|
|
11
11
|
import {
|
|
12
12
|
apiGet,
|
|
13
13
|
apiPost,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
runWorkerAction,
|
|
16
16
|
signMessage,
|
|
17
17
|
taskRequiresTap
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UJ3FRWUU.js";
|
|
19
19
|
import {
|
|
20
20
|
TaskAwardSchema,
|
|
21
21
|
buildClaimMessage,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
buildSubmitUploadMessage,
|
|
24
24
|
isRecordingPendingResponse,
|
|
25
25
|
submitUploadExpiresAt
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JXBWKGXC.js";
|
|
27
27
|
|
|
28
28
|
// src/sdk/artifact-upload.ts
|
|
29
29
|
import { extname } from "path";
|
|
@@ -115,9 +115,9 @@ function putArtifactBytes(uploadUrl, data, mimeType, onProgress, idleTimeoutMs =
|
|
|
115
115
|
// src/lib/worker-attestation.ts
|
|
116
116
|
var requirementCache = /* @__PURE__ */ new Map();
|
|
117
117
|
async function defaultGet(path) {
|
|
118
|
-
const { apiGet: apiGet2 } = await import("./api-
|
|
119
|
-
const { signReadAuth: signReadAuth2 } = await import("./read-auth-
|
|
120
|
-
const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-
|
|
118
|
+
const { apiGet: apiGet2 } = await import("./api-2PFUP432.js");
|
|
119
|
+
const { signReadAuth: signReadAuth2 } = await import("./read-auth-OQ3VVA4V.js");
|
|
120
|
+
const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-HUYBGG5E.js");
|
|
121
121
|
const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
|
|
122
122
|
return apiGet2(path, {
|
|
123
123
|
headers: {
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadDeliverableRecord,
|
|
7
7
|
readComputeView,
|
|
8
8
|
taskStage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AB3BDUMS.js";
|
|
10
10
|
import {
|
|
11
11
|
activeClaim,
|
|
12
12
|
captureProblem,
|
|
13
13
|
killedSession,
|
|
14
14
|
loadSyncState,
|
|
15
15
|
orphanOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VENFZBAZ.js";
|
|
17
17
|
import {
|
|
18
18
|
allocationViews,
|
|
19
19
|
channelView,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
openAgentChannels,
|
|
22
22
|
uncertainPurchases,
|
|
23
23
|
withdrawalHatch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QRNIBDYX.js";
|
|
25
25
|
import {
|
|
26
26
|
apiUrl,
|
|
27
27
|
selectedNetwork
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UJ3FRWUU.js";
|
|
29
29
|
import {
|
|
30
30
|
SandboxListOutputSchema
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JXBWKGXC.js";
|
|
32
32
|
import {
|
|
33
33
|
AgentLaunchError
|
|
34
34
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
listSandboxes
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-YAUYTYQI.js";
|
|
5
|
+
import "./chunk-AB3BDUMS.js";
|
|
6
|
+
import "./chunk-VENFZBAZ.js";
|
|
7
|
+
import "./chunk-VYYJ7FUB.js";
|
|
8
8
|
import {
|
|
9
9
|
AGENT_COMPATIBILITY,
|
|
10
10
|
assertAgentCompatibility,
|
|
@@ -16,19 +16,19 @@ import {
|
|
|
16
16
|
loadAgentPolicy,
|
|
17
17
|
openAgentChannels,
|
|
18
18
|
railChainIdHex
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QRNIBDYX.js";
|
|
20
20
|
import {
|
|
21
21
|
getX402PolicyPath,
|
|
22
22
|
loadX402Policy,
|
|
23
23
|
rpcUrlForNetwork
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GPKAJ7QH.js";
|
|
25
25
|
import {
|
|
26
26
|
apiUrl,
|
|
27
27
|
keystoreExists,
|
|
28
28
|
loadKeystore,
|
|
29
29
|
withChainId
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-UJ3FRWUU.js";
|
|
31
|
+
import "./chunk-JXBWKGXC.js";
|
|
32
32
|
import "./chunk-YM4S6IE4.js";
|
|
33
33
|
import {
|
|
34
34
|
AGENT_VIEW_VERSION
|