@lucid-agents/taskmarket 1.26.0 → 1.28.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-H7VPA6C6.js → api-IV2LK5CF.js} +2 -2
- package/dist/{channels-4IFPTRDY.js → channels-GM4PE3LJ.js} +4 -4
- package/dist/{chunk-VTMYCZLT.js → chunk-5UCQ4CTG.js} +4571 -4502
- package/dist/{chunk-Q2FZSDFG.js → chunk-6XSCWMWF.js} +1 -1
- package/dist/{chunk-NTLOY7SP.js → chunk-GL3YWOBS.js} +1 -1
- package/dist/{chunk-2AJZDGEL.js → chunk-JG7RZOLG.js} +1 -1
- package/dist/{chunk-GT5TOHOY.js → chunk-JU7EXT2K.js} +1 -1
- package/dist/{chunk-YIOZ7W3M.js → chunk-MOKEWGED.js} +3 -3
- package/dist/{chunk-XV6DBK4C.js → chunk-MWLJU6TX.js} +3 -3
- package/dist/{chunk-RPGVVVJD.js → chunk-OFZJJRJG.js} +3 -3
- package/dist/{chunk-PJAWRHHZ.js → chunk-QUYCPKAV.js} +2 -2
- package/dist/{chunk-YAKNCBUK.js → chunk-UTVPFCAV.js} +8 -8
- package/dist/{chunk-CNWA5PU3.js → chunk-YRAEI25P.js} +1 -1
- package/dist/{chunk-FMK32RJF.js → chunk-ZUJOFDF5.js} +5 -5
- package/dist/{doctor-HENBO5YV.js → doctor-L22YVTB2.js} +8 -8
- package/dist/index.js +89 -34
- package/dist/{launch-DMKAPDO4.js → launch-QG6GW2RQ.js} +11 -11
- package/dist/pi-extensions/xgate.cjs +82 -17
- package/dist/{read-auth-26D4BRUP.js → read-auth-YA3TQYY6.js} +3 -3
- package/dist/{reconcile-6A5U2Q7Q.js → reconcile-TPFGJNMP.js} +4 -4
- package/dist/{status-GRLQL23D.js → status-GSCNQCSX.js} +8 -8
- package/dist/{sync-pull-MSYWP5WU.js → sync-pull-NCOPVSGZ.js} +4 -4
- package/dist/{task-access-grants-54GQX63L.js → task-access-grants-6TS6JMKK.js} +2 -2
- package/package.json +2 -2
|
@@ -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-5UCQ4CTG.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/task-access-grants.ts
|
|
8
8
|
import { promises as fs } from "fs";
|
|
@@ -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-5UCQ4CTG.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentLaunchError
|
|
7
7
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
listX402Payments,
|
|
11
11
|
loadX402Policy,
|
|
12
12
|
rpcUrlForNetwork
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JG7RZOLG.js";
|
|
14
14
|
import {
|
|
15
15
|
createWalletAccountFromKeystore,
|
|
16
16
|
keystoreExists,
|
|
17
17
|
loadKeystore
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6XSCWMWF.js";
|
|
19
19
|
import {
|
|
20
20
|
getTaskmarketHome
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5UCQ4CTG.js";
|
|
22
22
|
import {
|
|
23
23
|
AgentLaunchError
|
|
24
24
|
} from "./chunk-YM4S6IE4.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
readMppTempoChallenge,
|
|
16
16
|
reconcileX402Payment,
|
|
17
17
|
withX402FileLock
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JG7RZOLG.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-6XSCWMWF.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-5UCQ4CTG.js";
|
|
47
47
|
|
|
48
48
|
// src/lib/x402-fee.ts
|
|
49
49
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
unsafeHostPath,
|
|
9
9
|
withFileLock,
|
|
10
10
|
writeAtomic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JU7EXT2K.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-MWLJU6TX.js";
|
|
20
20
|
import {
|
|
21
21
|
getTaskmarketHome
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5UCQ4CTG.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-6XSCWMWF.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-5UCQ4CTG.js";
|
|
11
11
|
|
|
12
12
|
// src/lib/read-auth.ts
|
|
13
13
|
async function signReadAuth() {
|
|
@@ -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-MWLJU6TX.js";
|
|
5
5
|
import {
|
|
6
6
|
signReadAuth
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QUYCPKAV.js";
|
|
8
8
|
import {
|
|
9
9
|
taskAccessGrantHeaders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GL3YWOBS.js";
|
|
11
11
|
import {
|
|
12
12
|
apiGet,
|
|
13
13
|
apiPost,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
runWorkerAction,
|
|
16
16
|
signMessage,
|
|
17
17
|
taskRequiresTap
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6XSCWMWF.js";
|
|
19
19
|
import {
|
|
20
20
|
TaskAwardSchema,
|
|
21
21
|
buildClaimMessage,
|
|
22
22
|
buildSubmitMessage,
|
|
23
23
|
isRecordingPendingResponse
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5UCQ4CTG.js";
|
|
25
25
|
|
|
26
26
|
// src/sdk/artifact-upload.ts
|
|
27
27
|
import { extname } from "path";
|
|
@@ -108,9 +108,9 @@ function putArtifactBytes(uploadUrl, data, mimeType, onProgress) {
|
|
|
108
108
|
// src/lib/worker-attestation.ts
|
|
109
109
|
var requirementCache = /* @__PURE__ */ new Map();
|
|
110
110
|
async function defaultGet(path) {
|
|
111
|
-
const { apiGet: apiGet2 } = await import("./api-
|
|
112
|
-
const { signReadAuth: signReadAuth2 } = await import("./read-auth-
|
|
113
|
-
const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-
|
|
111
|
+
const { apiGet: apiGet2 } = await import("./api-IV2LK5CF.js");
|
|
112
|
+
const { signReadAuth: signReadAuth2 } = await import("./read-auth-YA3TQYY6.js");
|
|
113
|
+
const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-6TS6JMKK.js");
|
|
114
114
|
const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
|
|
115
115
|
return apiGet2(path, {
|
|
116
116
|
headers: {
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadDeliverableRecord,
|
|
7
7
|
readComputeView,
|
|
8
8
|
taskStage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OFZJJRJG.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-JU7EXT2K.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-MOKEWGED.js";
|
|
25
25
|
import {
|
|
26
26
|
apiUrl,
|
|
27
27
|
selectedNetwork
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6XSCWMWF.js";
|
|
29
29
|
import {
|
|
30
30
|
SandboxListOutputSchema
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5UCQ4CTG.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-ZUJOFDF5.js";
|
|
5
|
+
import "./chunk-OFZJJRJG.js";
|
|
6
|
+
import "./chunk-JU7EXT2K.js";
|
|
7
|
+
import "./chunk-MWLJU6TX.js";
|
|
8
8
|
import {
|
|
9
9
|
AGENT_COMPATIBILITY,
|
|
10
10
|
assertAgentCompatibility,
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
channelView,
|
|
15
15
|
loadAgentPolicy,
|
|
16
16
|
openAgentChannels
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MOKEWGED.js";
|
|
18
18
|
import {
|
|
19
19
|
getX402PolicyPath,
|
|
20
20
|
loadX402Policy,
|
|
21
21
|
rpcUrlForNetwork
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JG7RZOLG.js";
|
|
23
23
|
import {
|
|
24
24
|
apiUrl,
|
|
25
25
|
keystoreExists,
|
|
26
26
|
loadKeystore,
|
|
27
27
|
withChainId
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-6XSCWMWF.js";
|
|
29
|
+
import "./chunk-5UCQ4CTG.js";
|
|
30
30
|
import "./chunk-YM4S6IE4.js";
|
|
31
31
|
import {
|
|
32
32
|
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-UTVPFCAV.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-MWLJU6TX.js";
|
|
39
39
|
import {
|
|
40
40
|
signReadAuth
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-QUYCPKAV.js";
|
|
42
42
|
import {
|
|
43
43
|
saveTaskAccessGrant,
|
|
44
44
|
taskAccessGrantHeaders
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GL3YWOBS.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-JG7RZOLG.js";
|
|
64
64
|
import {
|
|
65
65
|
ApiError,
|
|
66
66
|
KeystoreExistsError,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
withErrorContext,
|
|
117
117
|
withIdempotentWrite,
|
|
118
118
|
withTapSignature
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-6XSCWMWF.js";
|
|
120
120
|
import {
|
|
121
121
|
AGENT_AVATAR_MAX_BYTES,
|
|
122
122
|
AGENT_HIRES_ROLES,
|
|
@@ -172,6 +172,8 @@ import {
|
|
|
172
172
|
PenaltyTo,
|
|
173
173
|
PlatformTimeSeriesInputSchema,
|
|
174
174
|
PostBugReportMessageInputSchema,
|
|
175
|
+
ProjectGoalSchema,
|
|
176
|
+
ProjectNameSchema,
|
|
175
177
|
READ_AUTH_ADDRESS_HEADER,
|
|
176
178
|
READ_AUTH_SIGNATURE_HEADER,
|
|
177
179
|
REDACTED,
|
|
@@ -204,6 +206,8 @@ import {
|
|
|
204
206
|
SubmissionReviewStartPayloadSchema,
|
|
205
207
|
SubmissionReviewTaskInputSchema,
|
|
206
208
|
SubmitBugReportInputSchema,
|
|
209
|
+
TaskActionQueueInputSchema,
|
|
210
|
+
TaskChildListSchema,
|
|
207
211
|
TaskDropDirectoryInputSchema,
|
|
208
212
|
TaskDropGetInputSchema,
|
|
209
213
|
TaskDropOfficialStatusInputSchema,
|
|
@@ -294,7 +298,7 @@ import {
|
|
|
294
298
|
vaultCallGasLimit7702,
|
|
295
299
|
verifierProviderId,
|
|
296
300
|
verifiersUnsupportedOnChain
|
|
297
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-5UCQ4CTG.js";
|
|
298
302
|
import "./chunk-S7SJMJ2I.js";
|
|
299
303
|
|
|
300
304
|
// src/index.ts
|
|
@@ -9021,11 +9025,14 @@ var pitchCmd = new Command18("pitch").description("Submit a pitch for a task (co
|
|
|
9021
9025
|
|
|
9022
9026
|
// src/commands/task/pitches.ts
|
|
9023
9027
|
import { Command as Command19 } from "commander";
|
|
9024
|
-
var pitchesCmd = new Command19("pitches").description("List pitches for a task").argument("<taskId>", "Task ID (0x-prefixed hex)").action(async (taskId) => {
|
|
9028
|
+
var pitchesCmd = new Command19("pitches").description("List pitches for a task").argument("<taskId>", "Task ID (0x-prefixed hex)").option("--limit <n>", "Page size (1-500; default 500)").option("--cursor <id>", "Last returned id; read the following page").action(async (taskId, opts) => {
|
|
9025
9029
|
try {
|
|
9030
|
+
const page = TaskChildListSchema.parse({ taskId, ...opts });
|
|
9031
|
+
const params = new URLSearchParams({ limit: String(page.limit) });
|
|
9032
|
+
if (page.cursor) params.set("cursor", page.cursor);
|
|
9026
9033
|
const auth = await signReadAuth();
|
|
9027
9034
|
const headers = { ...auth?.headers ?? {}, ...await taskAccessGrantHeaders(taskId) };
|
|
9028
|
-
printResult(await apiGet(`/api/tasks/${taskId}/pitches`, { headers }));
|
|
9035
|
+
printResult(await apiGet(`/api/tasks/${taskId}/pitches?${params}`, { headers }));
|
|
9029
9036
|
} catch (err) {
|
|
9030
9037
|
renderFailure(err);
|
|
9031
9038
|
}
|
|
@@ -9083,11 +9090,14 @@ var proofCmd = new Command21("proof").description("Submit a benchmark proof (cos
|
|
|
9083
9090
|
|
|
9084
9091
|
// src/commands/task/proofs.ts
|
|
9085
9092
|
import { Command as Command22 } from "commander";
|
|
9086
|
-
var proofsCmd = new Command22("proofs").description("List proofs for a benchmark task").argument("<taskId>", "Task ID (0x-prefixed hex)").action(async (taskId) => {
|
|
9093
|
+
var proofsCmd = new Command22("proofs").description("List proofs for a benchmark task").argument("<taskId>", "Task ID (0x-prefixed hex)").option("--limit <n>", "Page size (1-500; default 500)").option("--cursor <id>", "Last returned id; read the following page").action(async (taskId, opts) => {
|
|
9087
9094
|
try {
|
|
9095
|
+
const page = TaskChildListSchema.parse({ taskId, ...opts });
|
|
9096
|
+
const params = new URLSearchParams({ limit: String(page.limit) });
|
|
9097
|
+
if (page.cursor) params.set("cursor", page.cursor);
|
|
9088
9098
|
const auth = await signReadAuth();
|
|
9089
9099
|
const headers = { ...auth?.headers ?? {}, ...await taskAccessGrantHeaders(taskId) };
|
|
9090
|
-
printResult(await apiGet(`/api/tasks/${taskId}/proofs`, { headers }));
|
|
9100
|
+
printResult(await apiGet(`/api/tasks/${taskId}/proofs?${params}`, { headers }));
|
|
9091
9101
|
} catch (err) {
|
|
9092
9102
|
renderFailure(err);
|
|
9093
9103
|
}
|
|
@@ -10347,7 +10357,7 @@ async function runAgentCommand(options) {
|
|
|
10347
10357
|
try {
|
|
10348
10358
|
const { assertAgentCompatibility } = await import("./compatibility-636WJOEX.js");
|
|
10349
10359
|
const pi = assertAgentCompatibility();
|
|
10350
|
-
const { runAgent } = await import("./launch-
|
|
10360
|
+
const { runAgent } = await import("./launch-QG6GW2RQ.js");
|
|
10351
10361
|
result = await runAgent({
|
|
10352
10362
|
model: options.model,
|
|
10353
10363
|
pi,
|
|
@@ -10772,13 +10782,13 @@ function agentManagementCommands() {
|
|
|
10772
10782
|
const status = new Command53("status").description(
|
|
10773
10783
|
"Show the agent channels (locked, charged, refundable), purchases with an unknown outcome, the sandbox and compute credit. Reads only."
|
|
10774
10784
|
).action(async () => {
|
|
10775
|
-
const { collectAgentStatus } = await import("./status-
|
|
10785
|
+
const { collectAgentStatus } = await import("./status-GSCNQCSX.js");
|
|
10776
10786
|
await run(() => collectAgentStatus());
|
|
10777
10787
|
});
|
|
10778
10788
|
const doctor = new Command53("doctor").description(
|
|
10779
10789
|
"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."
|
|
10780
10790
|
).action(async () => {
|
|
10781
|
-
const { runDoctor } = await import("./doctor-
|
|
10791
|
+
const { runDoctor } = await import("./doctor-L22YVTB2.js");
|
|
10782
10792
|
const report = await run(() => runDoctor());
|
|
10783
10793
|
if (report && !report.ok) process.exitCode = 1;
|
|
10784
10794
|
});
|
|
@@ -10789,7 +10799,7 @@ function agentManagementCommands() {
|
|
|
10789
10799
|
"Reconcile the open purchases of this channel, as status lists it; also reaches retired channels"
|
|
10790
10800
|
).action(
|
|
10791
10801
|
async (invocationId, options) => {
|
|
10792
|
-
const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-
|
|
10802
|
+
const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-TPFGJNMP.js");
|
|
10793
10803
|
const choice = { rail: options.rail, channel: options.channel };
|
|
10794
10804
|
if (invocationId !== void 0) {
|
|
10795
10805
|
await run(() => reconcileInvocation(invocationId, { choice }));
|
|
@@ -10821,7 +10831,7 @@ function agentManagementCommands() {
|
|
|
10821
10831
|
`Not a USDC amount: ${options.amount} (digits, at most 6 decimals)`
|
|
10822
10832
|
);
|
|
10823
10833
|
}
|
|
10824
|
-
const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-
|
|
10834
|
+
const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-GM4PE3LJ.js");
|
|
10825
10835
|
const { rails } = await openAgentChannels();
|
|
10826
10836
|
const result = await requestTopUp(selectRail(rails, options.rail), amount);
|
|
10827
10837
|
return {
|
|
@@ -10841,8 +10851,8 @@ function agentManagementCommands() {
|
|
|
10841
10851
|
await run(async () => {
|
|
10842
10852
|
await requireExperimental();
|
|
10843
10853
|
const { AGENT_VIEW_VERSION } = await import("./budget-view-J6L7X6EY.js");
|
|
10844
|
-
const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-
|
|
10845
|
-
const { reconcileLeasedPurchase } = await import("./reconcile-
|
|
10854
|
+
const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-GM4PE3LJ.js");
|
|
10855
|
+
const { reconcileLeasedPurchase } = await import("./reconcile-TPFGJNMP.js");
|
|
10846
10856
|
const opened = await openAgentChannels();
|
|
10847
10857
|
const { rail, retired } = selectChannel(opened, options);
|
|
10848
10858
|
const result = await closeChannel(
|
|
@@ -10896,7 +10906,7 @@ function agentManagementCommands() {
|
|
|
10896
10906
|
async (options) => {
|
|
10897
10907
|
await run(async () => {
|
|
10898
10908
|
await requireExperimental();
|
|
10899
|
-
const { runPull } = await import("./sync-pull-
|
|
10909
|
+
const { runPull } = await import("./sync-pull-NCOPVSGZ.js");
|
|
10900
10910
|
const { terminalPrompter } = await import("./prompter-LSICEYSQ.js");
|
|
10901
10911
|
return runPull(options, {
|
|
10902
10912
|
interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
|
|
@@ -11202,7 +11212,24 @@ agentsCommand.command("report").description("Report a worker's listing, or one o
|
|
|
11202
11212
|
import { Command as Command56 } from "commander";
|
|
11203
11213
|
var inboxCommand = new Command56("inbox").description(
|
|
11204
11214
|
"Show what you need to do now, then tasks you created, tasks you are working on, and private tasks you were invited to"
|
|
11205
|
-
).
|
|
11215
|
+
).option(
|
|
11216
|
+
"--limit <n>",
|
|
11217
|
+
"Action candidate page size (1-100; default 50); task/bid lists are unchanged"
|
|
11218
|
+
).option(
|
|
11219
|
+
"--cursor <token>",
|
|
11220
|
+
"Continue the action queue with its nextCursor; task/bid lists are unchanged"
|
|
11221
|
+
).option("--actions-only", "Read only the bounded action queue, without task/bid lists").action(async (opts) => {
|
|
11222
|
+
let page;
|
|
11223
|
+
try {
|
|
11224
|
+
page = TaskActionQueueInputSchema.parse({
|
|
11225
|
+
address: "validation",
|
|
11226
|
+
limit: opts.limit,
|
|
11227
|
+
cursor: opts.cursor
|
|
11228
|
+
});
|
|
11229
|
+
} catch (err) {
|
|
11230
|
+
renderFailure(err);
|
|
11231
|
+
return;
|
|
11232
|
+
}
|
|
11206
11233
|
const auth = await signReadAuth();
|
|
11207
11234
|
if (!auth) {
|
|
11208
11235
|
printError("No keystore found. Run `taskmarket init` first.");
|
|
@@ -11211,6 +11238,22 @@ var inboxCommand = new Command56("inbox").description(
|
|
|
11211
11238
|
const address2 = auth.walletAddress;
|
|
11212
11239
|
const hasReadAuth = Object.keys(auth.headers).length > 0;
|
|
11213
11240
|
const inboxParams = new URLSearchParams({ address: address2 });
|
|
11241
|
+
const actionParams = new URLSearchParams({ address: address2, limit: String(page.limit) });
|
|
11242
|
+
if (page.cursor) actionParams.set("cursor", page.cursor);
|
|
11243
|
+
if (opts.actionsOnly) {
|
|
11244
|
+
try {
|
|
11245
|
+
printResult(
|
|
11246
|
+
withChainNames({
|
|
11247
|
+
actions: await apiGet(`/api/agents/action-queue?${actionParams}`, {
|
|
11248
|
+
headers: auth.headers
|
|
11249
|
+
})
|
|
11250
|
+
})
|
|
11251
|
+
);
|
|
11252
|
+
} catch (err) {
|
|
11253
|
+
renderFailure(err);
|
|
11254
|
+
}
|
|
11255
|
+
return;
|
|
11256
|
+
}
|
|
11214
11257
|
const [taskResult, pendingBids, actions] = await Promise.all([
|
|
11215
11258
|
apiGet(`/api/agents/inbox?${inboxParams.toString()}`, {
|
|
11216
11259
|
headers: auth.headers
|
|
@@ -11222,7 +11265,7 @@ var inboxCommand = new Command56("inbox").description(
|
|
|
11222
11265
|
// the web Inbox shows. Nothing here filters it or re-derives it from raw pendingActions
|
|
11223
11266
|
// (ADR-0080). A queue failure is reported beside the task lists instead of
|
|
11224
11267
|
// failing the whole read.
|
|
11225
|
-
apiGet(`/api/agents/action-queue?${
|
|
11268
|
+
apiGet(`/api/agents/action-queue?${actionParams.toString()}`, {
|
|
11226
11269
|
headers: auth.headers
|
|
11227
11270
|
}).then(
|
|
11228
11271
|
(queue) => ({ queue, error: null }),
|
|
@@ -21742,19 +21785,31 @@ var projectCreateCommand = new Command124("create").description(
|
|
|
21742
21785
|
).option(
|
|
21743
21786
|
"--task-grace <duration>",
|
|
21744
21787
|
"How long after the end date the project's tasks may run, fixed at creation: 0, or up to 90d (default 30d). Every project task must end by then, and backers can claim once the last one ends"
|
|
21745
|
-
).
|
|
21746
|
-
|
|
21747
|
-
|
|
21748
|
-
|
|
21749
|
-
|
|
21750
|
-
|
|
21751
|
-
|
|
21752
|
-
|
|
21753
|
-
|
|
21754
|
-
|
|
21755
|
-
|
|
21756
|
-
|
|
21757
|
-
|
|
21788
|
+
).option("--name <text>", "A short name for the project: 1 to 80 characters of plain text").option("--goal <text>", "What the project is for: up to 500 characters of plain text").action(
|
|
21789
|
+
async (opts) => {
|
|
21790
|
+
const name = opts.name === void 0 ? void 0 : ProjectNameSchema.safeParse(opts.name);
|
|
21791
|
+
if (name && !name.success) return void printError(`--name: ${name.error.issues[0].message}`);
|
|
21792
|
+
const goal = opts.goal === void 0 ? void 0 : ProjectGoalSchema.safeParse(opts.goal);
|
|
21793
|
+
if (goal && !goal.success) return void printError(`--goal: ${goal.error.issues[0].message}`);
|
|
21794
|
+
const budget = parseAmount(opts.budget, "--budget");
|
|
21795
|
+
if (typeof budget !== "string") return void printError(budget.error);
|
|
21796
|
+
const endsAt = parseEndsAt(opts.endsAt);
|
|
21797
|
+
if (typeof endsAt !== "string") return void printError(endsAt.error);
|
|
21798
|
+
const taskGraceSecs = opts.taskGrace === void 0 ? void 0 : parseTaskGrace(opts.taskGrace);
|
|
21799
|
+
if (typeof taskGraceSecs === "object") return void printError(taskGraceSecs.error);
|
|
21800
|
+
await postProjectWrite(
|
|
21801
|
+
"/api/projects",
|
|
21802
|
+
{
|
|
21803
|
+
budget,
|
|
21804
|
+
endsAt,
|
|
21805
|
+
...taskGraceSecs === void 0 ? {} : { taskGraceSecs },
|
|
21806
|
+
...name?.success ? { name: name.data } : {},
|
|
21807
|
+
...goal?.success ? { goal: goal.data } : {}
|
|
21808
|
+
},
|
|
21809
|
+
{ maxAmount: budget }
|
|
21810
|
+
);
|
|
21811
|
+
}
|
|
21812
|
+
);
|
|
21758
21813
|
|
|
21759
21814
|
// src/commands/project/fund.ts
|
|
21760
21815
|
import { Command as Command125 } from "commander";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
sha256Hex,
|
|
39
39
|
specHash,
|
|
40
40
|
taskStage
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-OFZJJRJG.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-YRAEI25P.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-JU7EXT2K.js";
|
|
63
63
|
import {
|
|
64
64
|
TaskOperationError,
|
|
65
65
|
authorizeUploads,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
requestArtifactUpload,
|
|
79
79
|
submitUploadedArtifacts,
|
|
80
80
|
taskAwardsOf
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-UTVPFCAV.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-MWLJU6TX.js";
|
|
92
92
|
import {
|
|
93
93
|
signReadAuth
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-QUYCPKAV.js";
|
|
95
95
|
import {
|
|
96
96
|
taskAccessGrantHeaders
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-GL3YWOBS.js";
|
|
98
98
|
import {
|
|
99
99
|
MAX_RETIRED_RAILS,
|
|
100
100
|
WORKSPACE_CONSENT_VERSION,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
routeOfCatalogRow,
|
|
115
115
|
saveAgentPolicy,
|
|
116
116
|
settledRetiredRails
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-MOKEWGED.js";
|
|
118
118
|
import {
|
|
119
119
|
BASE_CHANNEL_RAIL_ID,
|
|
120
120
|
createBaseChannelPayer,
|
|
@@ -128,13 +128,13 @@ import {
|
|
|
128
128
|
rpcUrlForNetwork,
|
|
129
129
|
saveX402Policy,
|
|
130
130
|
x402SpendWindowAvailability
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-JG7RZOLG.js";
|
|
132
132
|
import {
|
|
133
133
|
apiUrl,
|
|
134
134
|
keystoreExists,
|
|
135
135
|
loadKeystore,
|
|
136
136
|
selectedNetwork
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-6XSCWMWF.js";
|
|
138
138
|
import {
|
|
139
139
|
IntentStatusResponseSchema,
|
|
140
140
|
NetworkChainInfoSchema,
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
isRecordingPendingResponse,
|
|
144
144
|
piCodingAgentTools,
|
|
145
145
|
taskmarketChain
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-5UCQ4CTG.js";
|
|
147
147
|
import {
|
|
148
148
|
AgentLaunchError
|
|
149
149
|
} from "./chunk-YM4S6IE4.js";
|