@lucid-agents/taskmarket 1.32.1 → 1.33.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-TEZH6URZ.js → api-J7LB2GAY.js} +2 -2
- package/dist/{channels-ZNOTOJIS.js → channels-XY4SSEBG.js} +4 -4
- package/dist/{chunk-CH3OZ5EM.js → chunk-ACKPSLIR.js} +2 -2
- package/dist/{chunk-FJ4EPHIN.js → chunk-ALTIKIGD.js} +1 -1
- package/dist/{chunk-R6QEAGHK.js → chunk-BESAWMVS.js} +1 -1
- package/dist/{chunk-SPG5J4RN.js → chunk-E7HZKIUP.js} +3 -3
- package/dist/{chunk-CWANOJKR.js → chunk-JZ3SUHWV.js} +3 -3
- package/dist/{chunk-62QDQXS3.js → chunk-KGU3CSYK.js} +8 -8
- package/dist/{chunk-OUV2RQSB.js → chunk-QQ4PHAPV.js} +1 -1
- package/dist/{chunk-KC32V4AD.js → chunk-QUIWYQZL.js} +1 -1
- package/dist/{chunk-6WOUTOR4.js → chunk-TZH4XU62.js} +2 -0
- package/dist/{chunk-PSN4GDLD.js → chunk-VW7I7J5Q.js} +5 -5
- package/dist/{chunk-LT4DDAEZ.js → chunk-WVHSHZBK.js} +3 -3
- package/dist/{chunk-QVP3VXGD.js → chunk-YUYW5N4U.js} +1 -1
- package/dist/{doctor-5KU2FAWD.js → doctor-LHFMQ737.js} +8 -8
- package/dist/index.js +178 -135
- package/dist/{launch-RFRQPJAY.js → launch-B2KFGY2L.js} +11 -11
- package/dist/pi-extensions/xgate.cjs +2 -0
- package/dist/{read-auth-PQ7DGWZC.js → read-auth-P2WTHPWW.js} +3 -3
- package/dist/{reconcile-ZTCPP3G5.js → reconcile-7AIMC4P3.js} +4 -4
- package/dist/{status-CDPRDSYZ.js → status-6EYEBSQ6.js} +8 -8
- package/dist/{sync-pull-R7EBZKUG.js → sync-pull-XSIEQDGD.js} +4 -4
- package/dist/{task-access-grants-H3RJAJ32.js → task-access-grants-Z32WK3FJ.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-QUIWYQZL.js";
|
|
18
|
+
import "./chunk-TZH4XU62.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-JZ3SUHWV.js";
|
|
14
|
+
import "./chunk-QQ4PHAPV.js";
|
|
15
|
+
import "./chunk-QUIWYQZL.js";
|
|
16
|
+
import "./chunk-TZH4XU62.js";
|
|
17
17
|
import "./chunk-YM4S6IE4.js";
|
|
18
18
|
import "./chunk-XJOB4NMV.js";
|
|
19
19
|
import "./chunk-S7SJMJ2I.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-QUIWYQZL.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-TZH4XU62.js";
|
|
11
11
|
|
|
12
12
|
// src/lib/read-auth.ts
|
|
13
13
|
async function signReadAuth() {
|
|
@@ -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-TZH4XU62.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentLaunchError
|
|
7
7
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
unsafeHostPath,
|
|
9
9
|
withFileLock,
|
|
10
10
|
writeAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BESAWMVS.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-WVHSHZBK.js";
|
|
20
20
|
import {
|
|
21
21
|
getTaskmarketHome
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TZH4XU62.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentLaunchError
|
|
25
25
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
listX402Payments,
|
|
11
11
|
loadX402Policy,
|
|
12
12
|
rpcUrlForNetwork
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QQ4PHAPV.js";
|
|
14
14
|
import {
|
|
15
15
|
createWalletAccountFromKeystore,
|
|
16
16
|
keystoreExists,
|
|
17
17
|
loadKeystore
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QUIWYQZL.js";
|
|
19
19
|
import {
|
|
20
20
|
getTaskmarketHome,
|
|
21
21
|
taskmarketChain
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TZH4XU62.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentLaunchError
|
|
25
25
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -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-WVHSHZBK.js";
|
|
5
5
|
import {
|
|
6
6
|
signReadAuth
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ACKPSLIR.js";
|
|
8
8
|
import {
|
|
9
9
|
taskAccessGrantHeaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YUYW5N4U.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-QUIWYQZL.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-TZH4XU62.js";
|
|
27
27
|
|
|
28
28
|
// src/sdk/artifact-upload.ts
|
|
29
29
|
import { extname } from "path";
|
|
@@ -110,9 +110,9 @@ function putArtifactBytes(uploadUrl, data, mimeType, onProgress) {
|
|
|
110
110
|
// src/lib/worker-attestation.ts
|
|
111
111
|
var requirementCache = /* @__PURE__ */ new Map();
|
|
112
112
|
async function defaultGet(path) {
|
|
113
|
-
const { apiGet: apiGet2 } = await import("./api-
|
|
114
|
-
const { signReadAuth: signReadAuth2 } = await import("./read-auth-
|
|
115
|
-
const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-
|
|
113
|
+
const { apiGet: apiGet2 } = await import("./api-J7LB2GAY.js");
|
|
114
|
+
const { signReadAuth: signReadAuth2 } = await import("./read-auth-P2WTHPWW.js");
|
|
115
|
+
const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-Z32WK3FJ.js");
|
|
116
116
|
const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
|
|
117
117
|
return apiGet2(path, {
|
|
118
118
|
headers: {
|
|
@@ -4325,6 +4325,8 @@ var TaskResponseSchema = z16.object({
|
|
|
4325
4325
|
name: z16.string()
|
|
4326
4326
|
}).nullable().optional(),
|
|
4327
4327
|
hooks: z16.array(z16.string()).optional(),
|
|
4328
|
+
// The task's hooks not listed in the hook registry for its chain; protocol defaults never count.
|
|
4329
|
+
unverifiedHooks: z16.array(z16.string()).optional(),
|
|
4328
4330
|
// Rev028: the task's payout gate, when it was created with one.
|
|
4329
4331
|
payoutGate: TaskPayoutGateSchema.nullable().optional(),
|
|
4330
4332
|
// Rev028: the tasks whose payout this task gates, when it was created in gating mode (it then
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadDeliverableRecord,
|
|
7
7
|
readComputeView,
|
|
8
8
|
taskStage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E7HZKIUP.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-BESAWMVS.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-JZ3SUHWV.js";
|
|
25
25
|
import {
|
|
26
26
|
apiUrl,
|
|
27
27
|
selectedNetwork
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QUIWYQZL.js";
|
|
29
29
|
import {
|
|
30
30
|
SandboxListOutputSchema
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TZH4XU62.js";
|
|
32
32
|
import {
|
|
33
33
|
AgentLaunchError
|
|
34
34
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
readMppTempoChallenge,
|
|
16
16
|
reconcileX402Payment,
|
|
17
17
|
withX402FileLock
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QQ4PHAPV.js";
|
|
19
19
|
import {
|
|
20
20
|
ApiError,
|
|
21
21
|
apiGet,
|
|
@@ -36,14 +36,14 @@ import {
|
|
|
36
36
|
withChainId,
|
|
37
37
|
withIdempotentWrite,
|
|
38
38
|
withTapSignature
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-QUIWYQZL.js";
|
|
40
40
|
import {
|
|
41
41
|
ComputeCreditBuyOutputSchema,
|
|
42
42
|
ComputeCreditPricingSchema,
|
|
43
43
|
ComputeCreditStatusOutputSchema,
|
|
44
44
|
apiErrorEnvelopeOf,
|
|
45
45
|
getTaskmarketHome
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-TZH4XU62.js";
|
|
47
47
|
|
|
48
48
|
// src/lib/x402-fee.ts
|
|
49
49
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __tmCreateRequire } from 'node:module'; import { fileU
|
|
|
2
2
|
import {
|
|
3
3
|
TASK_ACCESS_GRANT_HEADER,
|
|
4
4
|
getTaskmarketHome
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TZH4XU62.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/task-access-grants.ts
|
|
8
8
|
import { promises as fs } from "fs";
|
|
@@ -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-VW7I7J5Q.js";
|
|
5
|
+
import "./chunk-E7HZKIUP.js";
|
|
6
|
+
import "./chunk-BESAWMVS.js";
|
|
7
|
+
import "./chunk-WVHSHZBK.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-JZ3SUHWV.js";
|
|
20
20
|
import {
|
|
21
21
|
getX402PolicyPath,
|
|
22
22
|
loadX402Policy,
|
|
23
23
|
rpcUrlForNetwork
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QQ4PHAPV.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-QUIWYQZL.js";
|
|
31
|
+
import "./chunk-TZH4XU62.js";
|
|
32
32
|
import "./chunk-YM4S6IE4.js";
|
|
33
33
|
import {
|
|
34
34
|
AGENT_VIEW_VERSION
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
listWorkerSubmissions,
|
|
14
14
|
submitTaskFiles,
|
|
15
15
|
taskRequirementsOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KGU3CSYK.js";
|
|
17
17
|
import {
|
|
18
18
|
ComputeCreditError,
|
|
19
19
|
applyComputeCreditSetup,
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
refusedPaidWrite,
|
|
36
36
|
releasePendingComputePurchase,
|
|
37
37
|
resolvePendingComputePurchases
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-WVHSHZBK.js";
|
|
39
39
|
import {
|
|
40
40
|
signReadAuth
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ACKPSLIR.js";
|
|
42
42
|
import {
|
|
43
43
|
saveTaskAccessGrant,
|
|
44
44
|
taskAccessGrantHeaders
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-YUYW5N4U.js";
|
|
46
46
|
import {
|
|
47
47
|
MPP_TEMPO_DEFAULT_VALIDITY_SECONDS,
|
|
48
48
|
X402PayError,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
setX402PolicyRuleEnabled,
|
|
61
61
|
signSponsoredTempoTransfer,
|
|
62
62
|
signTaskmarketFeePayment
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-QQ4PHAPV.js";
|
|
64
64
|
import {
|
|
65
65
|
ALL_NETWORKS,
|
|
66
66
|
ApiError,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
withErrorContext,
|
|
123
123
|
withIdempotentWrite,
|
|
124
124
|
withTapSignature
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-QUIWYQZL.js";
|
|
126
126
|
import {
|
|
127
127
|
AGENT_AVATAR_MAX_BYTES,
|
|
128
128
|
AGENT_HIRES_ROLES,
|
|
@@ -337,7 +337,7 @@ import {
|
|
|
337
337
|
vaultCallGasLimit7702,
|
|
338
338
|
verifierProviderId,
|
|
339
339
|
verifiersUnsupportedOnChain
|
|
340
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-TZH4XU62.js";
|
|
341
341
|
import "./chunk-S7SJMJ2I.js";
|
|
342
342
|
|
|
343
343
|
// src/index.ts
|
|
@@ -10872,6 +10872,82 @@ async function termsAmountsAndDeadlines(taskId) {
|
|
|
10872
10872
|
// src/commands/task/submit.ts
|
|
10873
10873
|
import { Command as Command14, Option as Option2 } from "commander";
|
|
10874
10874
|
|
|
10875
|
+
// src/lib/stake-confirmation.ts
|
|
10876
|
+
async function confirmStakeTerms(action, taskId, yes) {
|
|
10877
|
+
if (yes) return true;
|
|
10878
|
+
let detail;
|
|
10879
|
+
try {
|
|
10880
|
+
detail = await getTaskTerms(cliTaskReadContext(), { taskId });
|
|
10881
|
+
} catch {
|
|
10882
|
+
return true;
|
|
10883
|
+
}
|
|
10884
|
+
if (!detail?.terms.stakeRequired) return true;
|
|
10885
|
+
if (detail.amounts.enforcedStakeAmount === "0") return true;
|
|
10886
|
+
const stakeAmount = detail.amounts.enforcedStakeAmount ?? detail.amounts.stakeAmount;
|
|
10887
|
+
renderFailure(
|
|
10888
|
+
new Error(
|
|
10889
|
+
`This task requires a stake of ${stakeAmount} base units (${detail.terms.stakeBps} bps of the reward) to ${action}. Review the terms, then re-run with --yes to accept them.`
|
|
10890
|
+
),
|
|
10891
|
+
{
|
|
10892
|
+
details: {
|
|
10893
|
+
code: "stake_confirmation_required",
|
|
10894
|
+
terms: detail.terms,
|
|
10895
|
+
amounts: detail.amounts,
|
|
10896
|
+
deadlines: detail.deadlines
|
|
10897
|
+
}
|
|
10898
|
+
}
|
|
10899
|
+
);
|
|
10900
|
+
return false;
|
|
10901
|
+
}
|
|
10902
|
+
async function confirmStakeAffordable(address3, stake) {
|
|
10903
|
+
if (stake <= 0n) return true;
|
|
10904
|
+
let balance;
|
|
10905
|
+
try {
|
|
10906
|
+
const result = await apiGet(
|
|
10907
|
+
`/api/wallet/balance?address=${address3}&chainId=${selectedNetwork().chainId}`
|
|
10908
|
+
);
|
|
10909
|
+
if (typeof result?.balanceBaseUnits !== "string") return true;
|
|
10910
|
+
balance = BigInt(result.balanceBaseUnits);
|
|
10911
|
+
} catch {
|
|
10912
|
+
return true;
|
|
10913
|
+
}
|
|
10914
|
+
if (balance >= stake) return true;
|
|
10915
|
+
renderFailure(
|
|
10916
|
+
new Error(
|
|
10917
|
+
`This claim needs a stake of ${stake} base units, and the wallet holds ${balance}. Fund the wallet (taskmarket deposit), then claim again.`
|
|
10918
|
+
),
|
|
10919
|
+
{
|
|
10920
|
+
details: {
|
|
10921
|
+
code: "stake_balance_short",
|
|
10922
|
+
stakeAmount: stake.toString(),
|
|
10923
|
+
balance: balance.toString()
|
|
10924
|
+
}
|
|
10925
|
+
}
|
|
10926
|
+
);
|
|
10927
|
+
return false;
|
|
10928
|
+
}
|
|
10929
|
+
var UNVERIFIED_HOOK_CODE = "unverified_hook";
|
|
10930
|
+
async function confirmUnverifiedHooks(action, taskId, accepted, task) {
|
|
10931
|
+
if (accepted) return true;
|
|
10932
|
+
let read3 = task;
|
|
10933
|
+
if (read3 === void 0) {
|
|
10934
|
+
try {
|
|
10935
|
+
read3 = await getTask(cliTaskReadContext(), { taskId });
|
|
10936
|
+
} catch {
|
|
10937
|
+
return true;
|
|
10938
|
+
}
|
|
10939
|
+
}
|
|
10940
|
+
const hooks = [...read3?.unverifiedHooks ?? []];
|
|
10941
|
+
if (hooks.length === 0) return true;
|
|
10942
|
+
renderFailure(
|
|
10943
|
+
new Error(
|
|
10944
|
+
`This task has an unverified hook (${hooks.join(", ")}): it is not listed in the hook registry and can refuse every submission, so a stake can be lost. Re-run with --accept-unverified-hooks to ${action} at your own risk.`
|
|
10945
|
+
),
|
|
10946
|
+
{ details: { code: UNVERIFIED_HOOK_CODE, unverifiedHooks: hooks } }
|
|
10947
|
+
);
|
|
10948
|
+
return false;
|
|
10949
|
+
}
|
|
10950
|
+
|
|
10875
10951
|
// src/lib/task-network.ts
|
|
10876
10952
|
var WRONG_NETWORK_CODE = "wrong_network";
|
|
10877
10953
|
async function confirmTaskOnSelectedNetwork(taskId, task) {
|
|
@@ -10909,26 +10985,32 @@ function collectFile(value, previous) {
|
|
|
10909
10985
|
}
|
|
10910
10986
|
var submitCmd = new Command14("submit").description("Submit work for a task").argument("<taskId>", "Task ID (0x-prefixed hex)").option("--file <path>", "Path to a submission file (repeatable)", collectFile, []).addOption(
|
|
10911
10987
|
new Option2("--role <role>", "Artifact role applied to all files").choices(["preview", "source", "final", "attachment"]).default("attachment")
|
|
10912
|
-
).
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10988
|
+
).option(
|
|
10989
|
+
"--accept-unverified-hooks",
|
|
10990
|
+
"Proceed although the task has a hook the hook registry does not list (it can refuse every submission)"
|
|
10991
|
+
).action(
|
|
10992
|
+
async (taskId, opts) => {
|
|
10993
|
+
try {
|
|
10994
|
+
if (!opts.file || opts.file.length === 0) {
|
|
10995
|
+
printError("--file is required");
|
|
10996
|
+
return;
|
|
10997
|
+
}
|
|
10998
|
+
const submissionKey = resolveIdempotencyKey();
|
|
10999
|
+
if (!await confirmTaskOnSelectedNetwork(taskId)) return;
|
|
11000
|
+
if (!await confirmUnverifiedHooks("submit", taskId, opts.acceptUnverifiedHooks)) return;
|
|
11001
|
+
const keystore = await loadKeystore();
|
|
11002
|
+
const { submissionId, idempotencyKey } = await submitTaskFiles(
|
|
11003
|
+
cliTaskWriteContext(keystore),
|
|
11004
|
+
{ taskId },
|
|
11005
|
+
opts.file.map((path8) => ({ path: path8, role: opts.role })),
|
|
11006
|
+
{ idempotencyKey: submissionKey }
|
|
11007
|
+
);
|
|
11008
|
+
printResult({ submissionId }, { idempotencyKey });
|
|
11009
|
+
} finally {
|
|
11010
|
+
submitCmd.setOptionValue("file", []);
|
|
10917
11011
|
}
|
|
10918
|
-
const submissionKey = resolveIdempotencyKey();
|
|
10919
|
-
if (!await confirmTaskOnSelectedNetwork(taskId)) return;
|
|
10920
|
-
const keystore = await loadKeystore();
|
|
10921
|
-
const { submissionId, idempotencyKey } = await submitTaskFiles(
|
|
10922
|
-
cliTaskWriteContext(keystore),
|
|
10923
|
-
{ taskId },
|
|
10924
|
-
opts.file.map((path8) => ({ path: path8, role: opts.role })),
|
|
10925
|
-
{ idempotencyKey: submissionKey }
|
|
10926
|
-
);
|
|
10927
|
-
printResult({ submissionId }, { idempotencyKey });
|
|
10928
|
-
} finally {
|
|
10929
|
-
submitCmd.setOptionValue("file", []);
|
|
10930
11012
|
}
|
|
10931
|
-
|
|
11013
|
+
);
|
|
10932
11014
|
|
|
10933
11015
|
// src/commands/task/accept.ts
|
|
10934
11016
|
import { Command as Command15 } from "commander";
|
|
@@ -11186,61 +11268,6 @@ function settlementActionCommand(spec) {
|
|
|
11186
11268
|
});
|
|
11187
11269
|
}
|
|
11188
11270
|
|
|
11189
|
-
// src/lib/stake-confirmation.ts
|
|
11190
|
-
async function confirmStakeTerms(action, taskId, yes) {
|
|
11191
|
-
if (yes) return true;
|
|
11192
|
-
let detail;
|
|
11193
|
-
try {
|
|
11194
|
-
detail = await getTaskTerms(cliTaskReadContext(), { taskId });
|
|
11195
|
-
} catch {
|
|
11196
|
-
return true;
|
|
11197
|
-
}
|
|
11198
|
-
if (!detail?.terms.stakeRequired) return true;
|
|
11199
|
-
if (detail.amounts.enforcedStakeAmount === "0") return true;
|
|
11200
|
-
const stakeAmount = detail.amounts.enforcedStakeAmount ?? detail.amounts.stakeAmount;
|
|
11201
|
-
renderFailure(
|
|
11202
|
-
new Error(
|
|
11203
|
-
`This task requires a stake of ${stakeAmount} base units (${detail.terms.stakeBps} bps of the reward) to ${action}. Review the terms, then re-run with --yes to accept them.`
|
|
11204
|
-
),
|
|
11205
|
-
{
|
|
11206
|
-
details: {
|
|
11207
|
-
code: "stake_confirmation_required",
|
|
11208
|
-
terms: detail.terms,
|
|
11209
|
-
amounts: detail.amounts,
|
|
11210
|
-
deadlines: detail.deadlines
|
|
11211
|
-
}
|
|
11212
|
-
}
|
|
11213
|
-
);
|
|
11214
|
-
return false;
|
|
11215
|
-
}
|
|
11216
|
-
async function confirmStakeAffordable(address3, stake) {
|
|
11217
|
-
if (stake <= 0n) return true;
|
|
11218
|
-
let balance;
|
|
11219
|
-
try {
|
|
11220
|
-
const result = await apiGet(
|
|
11221
|
-
`/api/wallet/balance?address=${address3}&chainId=${selectedNetwork().chainId}`
|
|
11222
|
-
);
|
|
11223
|
-
if (typeof result?.balanceBaseUnits !== "string") return true;
|
|
11224
|
-
balance = BigInt(result.balanceBaseUnits);
|
|
11225
|
-
} catch {
|
|
11226
|
-
return true;
|
|
11227
|
-
}
|
|
11228
|
-
if (balance >= stake) return true;
|
|
11229
|
-
renderFailure(
|
|
11230
|
-
new Error(
|
|
11231
|
-
`This claim needs a stake of ${stake} base units, and the wallet holds ${balance}. Fund the wallet (taskmarket deposit), then claim again.`
|
|
11232
|
-
),
|
|
11233
|
-
{
|
|
11234
|
-
details: {
|
|
11235
|
-
code: "stake_balance_short",
|
|
11236
|
-
stakeAmount: stake.toString(),
|
|
11237
|
-
balance: balance.toString()
|
|
11238
|
-
}
|
|
11239
|
-
}
|
|
11240
|
-
);
|
|
11241
|
-
return false;
|
|
11242
|
-
}
|
|
11243
|
-
|
|
11244
11271
|
// src/commands/hires.ts
|
|
11245
11272
|
var ROLES = ["worker", "requester"];
|
|
11246
11273
|
function hireAnswerError(task, wallet, verb) {
|
|
@@ -11400,7 +11427,10 @@ var declineCmd = settlementActionCommand({
|
|
|
11400
11427
|
var hiresCommand = new Command19("hires").description("Hire offers made to you, and hires you made: list, accept, decline").addCommand(listCmd2).addCommand(acceptCmd2).addCommand(declineCmd);
|
|
11401
11428
|
|
|
11402
11429
|
// src/commands/task/claim.ts
|
|
11403
|
-
var claimCmd = new Command20("claim").description("Claim a task as a worker").argument("<taskId>", "Task ID (0x-prefixed hex)").option("--yes", "Accept the task's settlement terms, including paying any required stake").
|
|
11430
|
+
var claimCmd = new Command20("claim").description("Claim a task as a worker").argument("<taskId>", "Task ID (0x-prefixed hex)").option("--yes", "Accept the task's settlement terms, including paying any required stake").option(
|
|
11431
|
+
"--accept-unverified-hooks",
|
|
11432
|
+
"Proceed although the task has a hook the hook registry does not list (it can refuse every submission)"
|
|
11433
|
+
).action(async (taskId, opts) => {
|
|
11404
11434
|
const keystore = await loadKeystore();
|
|
11405
11435
|
const task = await getTask(cliTaskReadContext(), { taskId });
|
|
11406
11436
|
const atCapacity = await hireAcceptCapacityError(task, keystore.walletAddress);
|
|
@@ -11409,6 +11439,7 @@ var claimCmd = new Command20("claim").description("Claim a task as a worker").ar
|
|
|
11409
11439
|
details: { code: HIRE_AGENT_AT_CAPACITY }
|
|
11410
11440
|
});
|
|
11411
11441
|
}
|
|
11442
|
+
if (!await confirmUnverifiedHooks("claim", taskId, opts.acceptUnverifiedHooks, task)) return;
|
|
11412
11443
|
if (!await confirmStakeTerms("claim", taskId, opts.yes)) return;
|
|
11413
11444
|
const stake = task ? claimStakeToPost(task) : 0n;
|
|
11414
11445
|
if (!await confirmStakeAffordable(keystore.walletAddress, stake)) return;
|
|
@@ -11421,28 +11452,34 @@ var claimCmd = new Command20("claim").description("Claim a task as a worker").ar
|
|
|
11421
11452
|
|
|
11422
11453
|
// src/commands/task/pitch.ts
|
|
11423
11454
|
import { Command as Command21 } from "commander";
|
|
11424
|
-
var pitchCmd = new Command21("pitch").description("Submit a pitch for a task (costs 0.001 in the payment token, anchors hash onchain)").argument("<taskId>", "Task ID (0x-prefixed hex)").requiredOption("--text <text>", "Pitch text").option("--duration <hours>", "Estimated duration in hours").option("--yes", "Accept the task's settlement terms, including any required stake").
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
taskId,
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11455
|
+
var pitchCmd = new Command21("pitch").description("Submit a pitch for a task (costs 0.001 in the payment token, anchors hash onchain)").argument("<taskId>", "Task ID (0x-prefixed hex)").requiredOption("--text <text>", "Pitch text").option("--duration <hours>", "Estimated duration in hours").option("--yes", "Accept the task's settlement terms, including any required stake").option(
|
|
11456
|
+
"--accept-unverified-hooks",
|
|
11457
|
+
"Proceed although the task has a hook the hook registry does not list (it can refuse every submission)"
|
|
11458
|
+
).action(
|
|
11459
|
+
async (taskId, opts) => {
|
|
11460
|
+
if (!await confirmUnverifiedHooks("pitch", taskId, opts.acceptUnverifiedHooks)) return;
|
|
11461
|
+
if (!await confirmStakeTerms("pitch", taskId, opts.yes)) return;
|
|
11462
|
+
const keystore = await loadKeystore();
|
|
11463
|
+
const signature = await signMessage(buildPitchMessage(taskId), keystore);
|
|
11464
|
+
const { data: result, idempotencyKey } = await attestedWorkerAction(
|
|
11465
|
+
taskId,
|
|
11466
|
+
keystore,
|
|
11467
|
+
(tap) => x402Post(
|
|
11468
|
+
`/api/tasks/${taskId}/pitches`,
|
|
11469
|
+
{
|
|
11470
|
+
taskId,
|
|
11471
|
+
workerAddress: keystore.walletAddress,
|
|
11472
|
+
pitchText: opts.text,
|
|
11473
|
+
...opts.duration ? { estimatedDuration: parseInt(opts.duration, 10) } : {},
|
|
11474
|
+
signature
|
|
11475
|
+
},
|
|
11476
|
+
// TAP-signed, each round with its own nonce, when the task requires tap.
|
|
11477
|
+
{ maxAmount: ACTION_FEE_MAX_AMOUNT, ...tap ? { tap } : {} }
|
|
11478
|
+
)
|
|
11479
|
+
);
|
|
11480
|
+
printResult({ pitchId: result.pitchId }, { idempotencyKey });
|
|
11481
|
+
}
|
|
11482
|
+
);
|
|
11446
11483
|
|
|
11447
11484
|
// src/commands/task/pitches.ts
|
|
11448
11485
|
import { Command as Command22 } from "commander";
|
|
@@ -11531,31 +11568,37 @@ var proofsCmd = new Command25("proofs").description("List proofs for a benchmark
|
|
|
11531
11568
|
|
|
11532
11569
|
// src/commands/task/bid.ts
|
|
11533
11570
|
import { Command as Command26 } from "commander";
|
|
11534
|
-
var bidCmd = new Command26("bid").description("Submit a bid on an auction task").argument("<taskId>", "Task ID (0x-prefixed hex)").requiredOption("--price <amount>", "Bid price in the payment token (e.g. 3 or 1.5)").option("--yes", "Accept the task's settlement terms, including any required stake").
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11571
|
+
var bidCmd = new Command26("bid").description("Submit a bid on an auction task").argument("<taskId>", "Task ID (0x-prefixed hex)").requiredOption("--price <amount>", "Bid price in the payment token (e.g. 3 or 1.5)").option("--yes", "Accept the task's settlement terms, including any required stake").option(
|
|
11572
|
+
"--accept-unverified-hooks",
|
|
11573
|
+
"Proceed although the task has a hook the hook registry does not list (it can refuse every submission)"
|
|
11574
|
+
).action(
|
|
11575
|
+
async (taskId, opts) => {
|
|
11576
|
+
let priceBaseUnits;
|
|
11577
|
+
try {
|
|
11578
|
+
priceBaseUnits = usdcToBaseUnits(opts.price);
|
|
11579
|
+
} catch (err) {
|
|
11580
|
+
renderFailure(withErrorContext(err, "Invalid --price"));
|
|
11581
|
+
return;
|
|
11582
|
+
}
|
|
11583
|
+
if (!await confirmUnverifiedHooks("bid", taskId, opts.acceptUnverifiedHooks)) return;
|
|
11584
|
+
if (!await confirmStakeTerms("bid", taskId, opts.yes)) return;
|
|
11585
|
+
const path8 = `/api/tasks/${taskId}/bids`;
|
|
11586
|
+
const body = { taskId, price: priceBaseUnits };
|
|
11587
|
+
const task = await taskRequirementsOf(taskId);
|
|
11588
|
+
const gated = (task?.identity?.length ?? 0) > 0 || taskRequiresTap(task);
|
|
11589
|
+
const { data: result, idempotencyKey } = gated ? await attestedWorkerAction(
|
|
11590
|
+
taskId,
|
|
11591
|
+
await loadKeystore(),
|
|
11592
|
+
async (tap) => x402Post(path8, body, {
|
|
11593
|
+
maxAmount: ACTION_FEE_MAX_AMOUNT,
|
|
11594
|
+
headers: (await signReadAuth())?.headers ?? {},
|
|
11595
|
+
...tap ? { tap } : {}
|
|
11596
|
+
}),
|
|
11597
|
+
task
|
|
11598
|
+
) : await x402Post(path8, body, { maxAmount: ACTION_FEE_MAX_AMOUNT });
|
|
11599
|
+
printResult({ bidId: result.bidId }, { idempotencyKey });
|
|
11541
11600
|
}
|
|
11542
|
-
|
|
11543
|
-
const path8 = `/api/tasks/${taskId}/bids`;
|
|
11544
|
-
const body = { taskId, price: priceBaseUnits };
|
|
11545
|
-
const task = await taskRequirementsOf(taskId);
|
|
11546
|
-
const gated = (task?.identity?.length ?? 0) > 0 || taskRequiresTap(task);
|
|
11547
|
-
const { data: result, idempotencyKey } = gated ? await attestedWorkerAction(
|
|
11548
|
-
taskId,
|
|
11549
|
-
await loadKeystore(),
|
|
11550
|
-
async (tap) => x402Post(path8, body, {
|
|
11551
|
-
maxAmount: ACTION_FEE_MAX_AMOUNT,
|
|
11552
|
-
headers: (await signReadAuth())?.headers ?? {},
|
|
11553
|
-
...tap ? { tap } : {}
|
|
11554
|
-
}),
|
|
11555
|
-
task
|
|
11556
|
-
) : await x402Post(path8, body, { maxAmount: ACTION_FEE_MAX_AMOUNT });
|
|
11557
|
-
printResult({ bidId: result.bidId }, { idempotencyKey });
|
|
11558
|
-
});
|
|
11601
|
+
);
|
|
11559
11602
|
|
|
11560
11603
|
// src/commands/task/auction-accept.ts
|
|
11561
11604
|
import { Command as Command27 } from "commander";
|
|
@@ -12816,7 +12859,7 @@ async function runAgentCommand(options) {
|
|
|
12816
12859
|
try {
|
|
12817
12860
|
const { assertAgentCompatibility } = await import("./compatibility-636WJOEX.js");
|
|
12818
12861
|
const pi = assertAgentCompatibility();
|
|
12819
|
-
const { runAgent } = await import("./launch-
|
|
12862
|
+
const { runAgent } = await import("./launch-B2KFGY2L.js");
|
|
12820
12863
|
result = await runAgent({
|
|
12821
12864
|
model: options.model,
|
|
12822
12865
|
pi,
|
|
@@ -13250,13 +13293,13 @@ function agentManagementCommands() {
|
|
|
13250
13293
|
const status = new Command57("status").description(
|
|
13251
13294
|
"Show the agent channels (locked, charged, refundable), purchases with an unknown outcome, the sandbox and compute credit. Reads only."
|
|
13252
13295
|
).action(async () => {
|
|
13253
|
-
const { collectAgentStatus } = await import("./status-
|
|
13296
|
+
const { collectAgentStatus } = await import("./status-6EYEBSQ6.js");
|
|
13254
13297
|
await run(() => collectAgentStatus());
|
|
13255
13298
|
});
|
|
13256
13299
|
const doctor = new Command57("doctor").description(
|
|
13257
13300
|
"Check that the agent can start: Node and the bundled runtime, wallet and policy, channels, API, sandbox broker, host keys, xgate and RPC. Reads only."
|
|
13258
13301
|
).action(async () => {
|
|
13259
|
-
const { runDoctor } = await import("./doctor-
|
|
13302
|
+
const { runDoctor } = await import("./doctor-LHFMQ737.js");
|
|
13260
13303
|
const report = await run(() => runDoctor());
|
|
13261
13304
|
if (report && !report.ok) process.exitCode = 1;
|
|
13262
13305
|
});
|
|
@@ -13267,7 +13310,7 @@ function agentManagementCommands() {
|
|
|
13267
13310
|
"Reconcile the open purchases of this channel, as status lists it; also reaches retired channels"
|
|
13268
13311
|
).action(
|
|
13269
13312
|
async (invocationId, options) => {
|
|
13270
|
-
const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-
|
|
13313
|
+
const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-7AIMC4P3.js");
|
|
13271
13314
|
const choice = { rail: options.rail, channel: options.channel };
|
|
13272
13315
|
if (invocationId !== void 0) {
|
|
13273
13316
|
await run(() => reconcileInvocation(invocationId, { choice }));
|
|
@@ -13299,7 +13342,7 @@ function agentManagementCommands() {
|
|
|
13299
13342
|
`Not a USDC amount: ${options.amount} (digits, at most 6 decimals)`
|
|
13300
13343
|
);
|
|
13301
13344
|
}
|
|
13302
|
-
const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-
|
|
13345
|
+
const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-XY4SSEBG.js");
|
|
13303
13346
|
const { rails } = await openAgentChannels();
|
|
13304
13347
|
const result = await requestTopUp(selectRail(rails, options.rail), amount);
|
|
13305
13348
|
return {
|
|
@@ -13319,8 +13362,8 @@ function agentManagementCommands() {
|
|
|
13319
13362
|
await run(async () => {
|
|
13320
13363
|
await requireExperimental();
|
|
13321
13364
|
const { AGENT_VIEW_VERSION } = await import("./budget-view-J6L7X6EY.js");
|
|
13322
|
-
const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-
|
|
13323
|
-
const { reconcileLeasedPurchase } = await import("./reconcile-
|
|
13365
|
+
const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-XY4SSEBG.js");
|
|
13366
|
+
const { reconcileLeasedPurchase } = await import("./reconcile-7AIMC4P3.js");
|
|
13324
13367
|
const opened = await openAgentChannels();
|
|
13325
13368
|
const { rail, retired } = selectChannel(opened, options);
|
|
13326
13369
|
const result = await closeChannel(
|
|
@@ -13374,7 +13417,7 @@ function agentManagementCommands() {
|
|
|
13374
13417
|
async (options) => {
|
|
13375
13418
|
await run(async () => {
|
|
13376
13419
|
await requireExperimental();
|
|
13377
|
-
const { runPull } = await import("./sync-pull-
|
|
13420
|
+
const { runPull } = await import("./sync-pull-XSIEQDGD.js");
|
|
13378
13421
|
const { terminalPrompter } = await import("./prompter-LSICEYSQ.js");
|
|
13379
13422
|
return runPull(options, {
|
|
13380
13423
|
interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
sha256Hex,
|
|
39
39
|
specHash,
|
|
40
40
|
taskStage
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-E7HZKIUP.js";
|
|
42
42
|
import {
|
|
43
43
|
SessionSync,
|
|
44
44
|
emptyBase,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
recordSessionEnd,
|
|
48
48
|
recordSessionStart,
|
|
49
49
|
uploadPlan
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-ALTIKIGD.js";
|
|
51
51
|
import {
|
|
52
52
|
BrokerConnector,
|
|
53
53
|
OutputLimitError,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
serveSandboxChannel,
|
|
60
60
|
withFileLock,
|
|
61
61
|
writeAtomic
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BESAWMVS.js";
|
|
63
63
|
import {
|
|
64
64
|
TaskOperationError,
|
|
65
65
|
claimTask,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
requestArtifactUpload,
|
|
79
79
|
submitUploadedArtifacts,
|
|
80
80
|
taskAwardsOf
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-KGU3CSYK.js";
|
|
82
82
|
import {
|
|
83
83
|
applyComputeCreditSetup,
|
|
84
84
|
atomicToUsd,
|
|
@@ -88,13 +88,13 @@ import {
|
|
|
88
88
|
planComputeCreditSetup,
|
|
89
89
|
readComputeCreditBalance,
|
|
90
90
|
usdToAtomic
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-WVHSHZBK.js";
|
|
92
92
|
import {
|
|
93
93
|
signReadAuth
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-ACKPSLIR.js";
|
|
95
95
|
import {
|
|
96
96
|
taskAccessGrantHeaders
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-YUYW5N4U.js";
|
|
98
98
|
import {
|
|
99
99
|
MAX_RETIRED_RAILS,
|
|
100
100
|
NETWORK_NAMES,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
routeOfCatalogRow,
|
|
119
119
|
saveAgentPolicy,
|
|
120
120
|
settledRetiredRails
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-JZ3SUHWV.js";
|
|
122
122
|
import {
|
|
123
123
|
BASE_CHANNEL_RAIL_ID,
|
|
124
124
|
createBaseChannelPayer,
|
|
@@ -132,13 +132,13 @@ import {
|
|
|
132
132
|
rpcUrlForNetwork,
|
|
133
133
|
saveX402Policy,
|
|
134
134
|
x402SpendWindowAvailability
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-QQ4PHAPV.js";
|
|
136
136
|
import {
|
|
137
137
|
apiUrl,
|
|
138
138
|
keystoreExists,
|
|
139
139
|
loadKeystore,
|
|
140
140
|
selectedNetwork
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-QUIWYQZL.js";
|
|
142
142
|
import {
|
|
143
143
|
IntentStatusResponseSchema,
|
|
144
144
|
NetworkChainInfoSchema,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
isRecordingPendingResponse,
|
|
148
148
|
piCodingAgentTools,
|
|
149
149
|
taskmarketChain
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-TZH4XU62.js";
|
|
151
151
|
import {
|
|
152
152
|
AgentLaunchError
|
|
153
153
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -33693,6 +33693,8 @@ var TaskResponseSchema = external_exports.object({
|
|
|
33693
33693
|
name: external_exports.string()
|
|
33694
33694
|
}).nullable().optional(),
|
|
33695
33695
|
hooks: external_exports.array(external_exports.string()).optional(),
|
|
33696
|
+
// The task's hooks not listed in the hook registry for its chain; protocol defaults never count.
|
|
33697
|
+
unverifiedHooks: external_exports.array(external_exports.string()).optional(),
|
|
33696
33698
|
// Rev028: the task's payout gate, when it was created with one.
|
|
33697
33699
|
payoutGate: TaskPayoutGateSchema.nullable().optional(),
|
|
33698
33700
|
// Rev028: the tasks whose payout this task gates, when it was created in gating mode (it then
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ACKPSLIR.js";
|
|
5
|
+
import "./chunk-QUIWYQZL.js";
|
|
6
|
+
import "./chunk-TZH4XU62.js";
|
|
7
7
|
import "./chunk-S7SJMJ2I.js";
|
|
8
8
|
export {
|
|
9
9
|
signReadAuth
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
channelView,
|
|
4
4
|
openAgentChannels,
|
|
5
5
|
selectChannel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JZ3SUHWV.js";
|
|
7
7
|
import {
|
|
8
8
|
BASE_CHANNEL_RAIL_ID,
|
|
9
9
|
X402_INVOCATION_ID_PATTERN,
|
|
10
10
|
getX402JournalPath,
|
|
11
11
|
listX402Payments
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-QQ4PHAPV.js";
|
|
13
|
+
import "./chunk-QUIWYQZL.js";
|
|
14
|
+
import "./chunk-TZH4XU62.js";
|
|
15
15
|
import {
|
|
16
16
|
AgentLaunchError
|
|
17
17
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
listSandboxes,
|
|
5
5
|
readSyncStatus,
|
|
6
6
|
readTaskStatus
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-VW7I7J5Q.js";
|
|
8
|
+
import "./chunk-E7HZKIUP.js";
|
|
9
|
+
import "./chunk-BESAWMVS.js";
|
|
10
|
+
import "./chunk-WVHSHZBK.js";
|
|
11
|
+
import "./chunk-JZ3SUHWV.js";
|
|
12
|
+
import "./chunk-QQ4PHAPV.js";
|
|
13
|
+
import "./chunk-QUIWYQZL.js";
|
|
14
|
+
import "./chunk-TZH4XU62.js";
|
|
15
15
|
import "./chunk-YM4S6IE4.js";
|
|
16
16
|
import "./chunk-XJOB4NMV.js";
|
|
17
17
|
import "./chunk-S7SJMJ2I.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
savedWorkspace,
|
|
12
12
|
summarize,
|
|
13
13
|
unsavedPaths
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ALTIKIGD.js";
|
|
15
15
|
import {
|
|
16
16
|
BrokerConnector,
|
|
17
17
|
SandboxUnavailableError,
|
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
releaseClaim,
|
|
28
28
|
unresolvedCount,
|
|
29
29
|
updateSyncState
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BESAWMVS.js";
|
|
31
31
|
import {
|
|
32
32
|
apiUrl,
|
|
33
33
|
loadKeystore
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-QUIWYQZL.js";
|
|
35
|
+
import "./chunk-TZH4XU62.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentLaunchError
|
|
38
38
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
loadTaskAccessGrant,
|
|
4
4
|
saveTaskAccessGrant,
|
|
5
5
|
taskAccessGrantHeaders
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-YUYW5N4U.js";
|
|
7
|
+
import "./chunk-TZH4XU62.js";
|
|
8
8
|
import "./chunk-S7SJMJ2I.js";
|
|
9
9
|
export {
|
|
10
10
|
loadTaskAccessGrant,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-agents/taskmarket",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"taskmarket": "./dist/index.js"
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@taskmarket/agent-host": "0.0.1",
|
|
34
34
|
"@taskmarket/contracts": "0.0.0",
|
|
35
35
|
"@taskmarket/eslint-config": "0.0.0",
|
|
36
|
-
"@taskmarket/remote-tools": "0.0.1",
|
|
37
36
|
"@taskmarket/prettier-config": "0.0.0",
|
|
37
|
+
"@taskmarket/remote-tools": "0.0.1",
|
|
38
38
|
"@taskmarket/shared": "2.0.0",
|
|
39
39
|
"@taskmarket/solana-sponsored-client": "0.1.0",
|
|
40
40
|
"@taskmarket/x402-payer": "0.1.0"
|