@lucid-agents/taskmarket 1.27.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.
Files changed (25) hide show
  1. package/dist/agent-compatibility.json +1 -1
  2. package/dist/{api-EKGAP2TK.js → api-IV2LK5CF.js} +2 -2
  3. package/dist/{channels-5V4244GL.js → channels-GM4PE3LJ.js} +4 -4
  4. package/dist/{chunk-ZW6MI2F6.js → chunk-5UCQ4CTG.js} +4558 -4505
  5. package/dist/{chunk-7KBQDZWR.js → chunk-6XSCWMWF.js} +1 -1
  6. package/dist/{chunk-HVI5YS47.js → chunk-GL3YWOBS.js} +1 -1
  7. package/dist/{chunk-CS36JL4J.js → chunk-JG7RZOLG.js} +1 -1
  8. package/dist/{chunk-6T24AGBE.js → chunk-JU7EXT2K.js} +1 -1
  9. package/dist/{chunk-MAIB4J42.js → chunk-MOKEWGED.js} +3 -3
  10. package/dist/{chunk-RA3GGK5G.js → chunk-MWLJU6TX.js} +3 -3
  11. package/dist/{chunk-EDW4XCAY.js → chunk-OFZJJRJG.js} +3 -3
  12. package/dist/{chunk-DTSONVE3.js → chunk-QUYCPKAV.js} +2 -2
  13. package/dist/{chunk-PCDHSI5Y.js → chunk-UTVPFCAV.js} +8 -8
  14. package/dist/{chunk-D26Z36NX.js → chunk-YRAEI25P.js} +1 -1
  15. package/dist/{chunk-QF2AWW7O.js → chunk-ZUJOFDF5.js} +5 -5
  16. package/dist/{doctor-3VKAO7ZW.js → doctor-L22YVTB2.js} +8 -8
  17. package/dist/index.js +62 -21
  18. package/dist/{launch-YVKAONR5.js → launch-QG6GW2RQ.js} +11 -11
  19. package/dist/pi-extensions/xgate.cjs +68 -17
  20. package/dist/{read-auth-XZOWQ45P.js → read-auth-YA3TQYY6.js} +3 -3
  21. package/dist/{reconcile-YBEASFA3.js → reconcile-TPFGJNMP.js} +4 -4
  22. package/dist/{status-NCA4MCIV.js → status-GSCNQCSX.js} +8 -8
  23. package/dist/{sync-pull-WOKOY65R.js → sync-pull-NCOPVSGZ.js} +4 -4
  24. package/dist/{task-access-grants-7JUAFFYG.js → task-access-grants-6TS6JMKK.js} +2 -2
  25. package/package.json +3 -3
@@ -9,7 +9,7 @@ import {
9
9
  paymentProtocolFor,
10
10
  taskmarketChain,
11
11
  verifierProviderId
12
- } from "./chunk-ZW6MI2F6.js";
12
+ } from "./chunk-5UCQ4CTG.js";
13
13
 
14
14
  // src/lib/idempotency.ts
15
15
  import { randomUUID } 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-ZW6MI2F6.js";
5
+ } from "./chunk-5UCQ4CTG.js";
6
6
 
7
7
  // src/lib/task-access-grants.ts
8
8
  import { promises as fs } from "fs";
@@ -8,7 +8,7 @@ import {
8
8
  getTaskmarketHome,
9
9
  mppAttributionMemo,
10
10
  parseMppChallenge
11
- } from "./chunk-ZW6MI2F6.js";
11
+ } from "./chunk-5UCQ4CTG.js";
12
12
 
13
13
  // ../../packages/x402-payer/dist/api.js
14
14
  var X402_PAYER_API_VERSION = 1;
@@ -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-ZW6MI2F6.js";
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-CS36JL4J.js";
13
+ } from "./chunk-JG7RZOLG.js";
14
14
  import {
15
15
  createWalletAccountFromKeystore,
16
16
  keystoreExists,
17
17
  loadKeystore
18
- } from "./chunk-7KBQDZWR.js";
18
+ } from "./chunk-6XSCWMWF.js";
19
19
  import {
20
20
  getTaskmarketHome
21
- } from "./chunk-ZW6MI2F6.js";
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-CS36JL4J.js";
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-7KBQDZWR.js";
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-ZW6MI2F6.js";
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-6T24AGBE.js";
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-RA3GGK5G.js";
19
+ } from "./chunk-MWLJU6TX.js";
20
20
  import {
21
21
  getTaskmarketHome
22
- } from "./chunk-ZW6MI2F6.js";
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-7KBQDZWR.js";
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-ZW6MI2F6.js";
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-RA3GGK5G.js";
4
+ } from "./chunk-MWLJU6TX.js";
5
5
  import {
6
6
  signReadAuth
7
- } from "./chunk-DTSONVE3.js";
7
+ } from "./chunk-QUYCPKAV.js";
8
8
  import {
9
9
  taskAccessGrantHeaders
10
- } from "./chunk-HVI5YS47.js";
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-7KBQDZWR.js";
18
+ } from "./chunk-6XSCWMWF.js";
19
19
  import {
20
20
  TaskAwardSchema,
21
21
  buildClaimMessage,
22
22
  buildSubmitMessage,
23
23
  isRecordingPendingResponse
24
- } from "./chunk-ZW6MI2F6.js";
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-EKGAP2TK.js");
112
- const { signReadAuth: signReadAuth2 } = await import("./read-auth-XZOWQ45P.js");
113
- const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-7JUAFFYG.js");
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: {
@@ -22,7 +22,7 @@ import {
22
22
  unresolvedCount,
23
23
  updateSyncState,
24
24
  uploadWorkspace
25
- } from "./chunk-6T24AGBE.js";
25
+ } from "./chunk-JU7EXT2K.js";
26
26
  import {
27
27
  AgentLaunchError
28
28
  } from "./chunk-YM4S6IE4.js";
@@ -6,14 +6,14 @@ import {
6
6
  loadDeliverableRecord,
7
7
  readComputeView,
8
8
  taskStage
9
- } from "./chunk-EDW4XCAY.js";
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-6T24AGBE.js";
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-MAIB4J42.js";
24
+ } from "./chunk-MOKEWGED.js";
25
25
  import {
26
26
  apiUrl,
27
27
  selectedNetwork
28
- } from "./chunk-7KBQDZWR.js";
28
+ } from "./chunk-6XSCWMWF.js";
29
29
  import {
30
30
  SandboxListOutputSchema
31
- } from "./chunk-ZW6MI2F6.js";
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-QF2AWW7O.js";
5
- import "./chunk-EDW4XCAY.js";
6
- import "./chunk-6T24AGBE.js";
7
- import "./chunk-RA3GGK5G.js";
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-MAIB4J42.js";
17
+ } from "./chunk-MOKEWGED.js";
18
18
  import {
19
19
  getX402PolicyPath,
20
20
  loadX402Policy,
21
21
  rpcUrlForNetwork
22
- } from "./chunk-CS36JL4J.js";
22
+ } from "./chunk-JG7RZOLG.js";
23
23
  import {
24
24
  apiUrl,
25
25
  keystoreExists,
26
26
  loadKeystore,
27
27
  withChainId
28
- } from "./chunk-7KBQDZWR.js";
29
- import "./chunk-ZW6MI2F6.js";
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-PCDHSI5Y.js";
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-RA3GGK5G.js";
38
+ } from "./chunk-MWLJU6TX.js";
39
39
  import {
40
40
  signReadAuth
41
- } from "./chunk-DTSONVE3.js";
41
+ } from "./chunk-QUYCPKAV.js";
42
42
  import {
43
43
  saveTaskAccessGrant,
44
44
  taskAccessGrantHeaders
45
- } from "./chunk-HVI5YS47.js";
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-CS36JL4J.js";
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-7KBQDZWR.js";
119
+ } from "./chunk-6XSCWMWF.js";
120
120
  import {
121
121
  AGENT_AVATAR_MAX_BYTES,
122
122
  AGENT_HIRES_ROLES,
@@ -206,6 +206,8 @@ import {
206
206
  SubmissionReviewStartPayloadSchema,
207
207
  SubmissionReviewTaskInputSchema,
208
208
  SubmitBugReportInputSchema,
209
+ TaskActionQueueInputSchema,
210
+ TaskChildListSchema,
209
211
  TaskDropDirectoryInputSchema,
210
212
  TaskDropGetInputSchema,
211
213
  TaskDropOfficialStatusInputSchema,
@@ -296,7 +298,7 @@ import {
296
298
  vaultCallGasLimit7702,
297
299
  verifierProviderId,
298
300
  verifiersUnsupportedOnChain
299
- } from "./chunk-ZW6MI2F6.js";
301
+ } from "./chunk-5UCQ4CTG.js";
300
302
  import "./chunk-S7SJMJ2I.js";
301
303
 
302
304
  // src/index.ts
@@ -9023,11 +9025,14 @@ var pitchCmd = new Command18("pitch").description("Submit a pitch for a task (co
9023
9025
 
9024
9026
  // src/commands/task/pitches.ts
9025
9027
  import { Command as Command19 } from "commander";
9026
- 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) => {
9027
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);
9028
9033
  const auth = await signReadAuth();
9029
9034
  const headers = { ...auth?.headers ?? {}, ...await taskAccessGrantHeaders(taskId) };
9030
- printResult(await apiGet(`/api/tasks/${taskId}/pitches`, { headers }));
9035
+ printResult(await apiGet(`/api/tasks/${taskId}/pitches?${params}`, { headers }));
9031
9036
  } catch (err) {
9032
9037
  renderFailure(err);
9033
9038
  }
@@ -9085,11 +9090,14 @@ var proofCmd = new Command21("proof").description("Submit a benchmark proof (cos
9085
9090
 
9086
9091
  // src/commands/task/proofs.ts
9087
9092
  import { Command as Command22 } from "commander";
9088
- 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) => {
9089
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);
9090
9098
  const auth = await signReadAuth();
9091
9099
  const headers = { ...auth?.headers ?? {}, ...await taskAccessGrantHeaders(taskId) };
9092
- printResult(await apiGet(`/api/tasks/${taskId}/proofs`, { headers }));
9100
+ printResult(await apiGet(`/api/tasks/${taskId}/proofs?${params}`, { headers }));
9093
9101
  } catch (err) {
9094
9102
  renderFailure(err);
9095
9103
  }
@@ -10349,7 +10357,7 @@ async function runAgentCommand(options) {
10349
10357
  try {
10350
10358
  const { assertAgentCompatibility } = await import("./compatibility-636WJOEX.js");
10351
10359
  const pi = assertAgentCompatibility();
10352
- const { runAgent } = await import("./launch-YVKAONR5.js");
10360
+ const { runAgent } = await import("./launch-QG6GW2RQ.js");
10353
10361
  result = await runAgent({
10354
10362
  model: options.model,
10355
10363
  pi,
@@ -10774,13 +10782,13 @@ function agentManagementCommands() {
10774
10782
  const status = new Command53("status").description(
10775
10783
  "Show the agent channels (locked, charged, refundable), purchases with an unknown outcome, the sandbox and compute credit. Reads only."
10776
10784
  ).action(async () => {
10777
- const { collectAgentStatus } = await import("./status-NCA4MCIV.js");
10785
+ const { collectAgentStatus } = await import("./status-GSCNQCSX.js");
10778
10786
  await run(() => collectAgentStatus());
10779
10787
  });
10780
10788
  const doctor = new Command53("doctor").description(
10781
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."
10782
10790
  ).action(async () => {
10783
- const { runDoctor } = await import("./doctor-3VKAO7ZW.js");
10791
+ const { runDoctor } = await import("./doctor-L22YVTB2.js");
10784
10792
  const report = await run(() => runDoctor());
10785
10793
  if (report && !report.ok) process.exitCode = 1;
10786
10794
  });
@@ -10791,7 +10799,7 @@ function agentManagementCommands() {
10791
10799
  "Reconcile the open purchases of this channel, as status lists it; also reaches retired channels"
10792
10800
  ).action(
10793
10801
  async (invocationId, options) => {
10794
- const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-YBEASFA3.js");
10802
+ const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-TPFGJNMP.js");
10795
10803
  const choice = { rail: options.rail, channel: options.channel };
10796
10804
  if (invocationId !== void 0) {
10797
10805
  await run(() => reconcileInvocation(invocationId, { choice }));
@@ -10823,7 +10831,7 @@ function agentManagementCommands() {
10823
10831
  `Not a USDC amount: ${options.amount} (digits, at most 6 decimals)`
10824
10832
  );
10825
10833
  }
10826
- const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-5V4244GL.js");
10834
+ const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-GM4PE3LJ.js");
10827
10835
  const { rails } = await openAgentChannels();
10828
10836
  const result = await requestTopUp(selectRail(rails, options.rail), amount);
10829
10837
  return {
@@ -10843,8 +10851,8 @@ function agentManagementCommands() {
10843
10851
  await run(async () => {
10844
10852
  await requireExperimental();
10845
10853
  const { AGENT_VIEW_VERSION } = await import("./budget-view-J6L7X6EY.js");
10846
- const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-5V4244GL.js");
10847
- const { reconcileLeasedPurchase } = await import("./reconcile-YBEASFA3.js");
10854
+ const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-GM4PE3LJ.js");
10855
+ const { reconcileLeasedPurchase } = await import("./reconcile-TPFGJNMP.js");
10848
10856
  const opened = await openAgentChannels();
10849
10857
  const { rail, retired } = selectChannel(opened, options);
10850
10858
  const result = await closeChannel(
@@ -10898,7 +10906,7 @@ function agentManagementCommands() {
10898
10906
  async (options) => {
10899
10907
  await run(async () => {
10900
10908
  await requireExperimental();
10901
- const { runPull } = await import("./sync-pull-WOKOY65R.js");
10909
+ const { runPull } = await import("./sync-pull-NCOPVSGZ.js");
10902
10910
  const { terminalPrompter } = await import("./prompter-LSICEYSQ.js");
10903
10911
  return runPull(options, {
10904
10912
  interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
@@ -11204,7 +11212,24 @@ agentsCommand.command("report").description("Report a worker's listing, or one o
11204
11212
  import { Command as Command56 } from "commander";
11205
11213
  var inboxCommand = new Command56("inbox").description(
11206
11214
  "Show what you need to do now, then tasks you created, tasks you are working on, and private tasks you were invited to"
11207
- ).action(async () => {
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
+ }
11208
11233
  const auth = await signReadAuth();
11209
11234
  if (!auth) {
11210
11235
  printError("No keystore found. Run `taskmarket init` first.");
@@ -11213,6 +11238,22 @@ var inboxCommand = new Command56("inbox").description(
11213
11238
  const address2 = auth.walletAddress;
11214
11239
  const hasReadAuth = Object.keys(auth.headers).length > 0;
11215
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
+ }
11216
11257
  const [taskResult, pendingBids, actions] = await Promise.all([
11217
11258
  apiGet(`/api/agents/inbox?${inboxParams.toString()}`, {
11218
11259
  headers: auth.headers
@@ -11224,7 +11265,7 @@ var inboxCommand = new Command56("inbox").description(
11224
11265
  // the web Inbox shows. Nothing here filters it or re-derives it from raw pendingActions
11225
11266
  // (ADR-0080). A queue failure is reported beside the task lists instead of
11226
11267
  // failing the whole read.
11227
- apiGet(`/api/agents/action-queue?${inboxParams.toString()}`, {
11268
+ apiGet(`/api/agents/action-queue?${actionParams.toString()}`, {
11228
11269
  headers: auth.headers
11229
11270
  }).then(
11230
11271
  (queue) => ({ queue, error: null }),
@@ -38,7 +38,7 @@ import {
38
38
  sha256Hex,
39
39
  specHash,
40
40
  taskStage
41
- } from "./chunk-EDW4XCAY.js";
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-D26Z36NX.js";
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-6T24AGBE.js";
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-PCDHSI5Y.js";
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-RA3GGK5G.js";
91
+ } from "./chunk-MWLJU6TX.js";
92
92
  import {
93
93
  signReadAuth
94
- } from "./chunk-DTSONVE3.js";
94
+ } from "./chunk-QUYCPKAV.js";
95
95
  import {
96
96
  taskAccessGrantHeaders
97
- } from "./chunk-HVI5YS47.js";
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-MAIB4J42.js";
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-CS36JL4J.js";
131
+ } from "./chunk-JG7RZOLG.js";
132
132
  import {
133
133
  apiUrl,
134
134
  keystoreExists,
135
135
  loadKeystore,
136
136
  selectedNetwork
137
- } from "./chunk-7KBQDZWR.js";
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-ZW6MI2F6.js";
146
+ } from "./chunk-5UCQ4CTG.js";
147
147
  import {
148
148
  AgentLaunchError
149
149
  } from "./chunk-YM4S6IE4.js";