@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.
Files changed (25) hide show
  1. package/dist/agent-compatibility.json +1 -1
  2. package/dist/{api-H7VPA6C6.js → api-IV2LK5CF.js} +2 -2
  3. package/dist/{channels-4IFPTRDY.js → channels-GM4PE3LJ.js} +4 -4
  4. package/dist/{chunk-VTMYCZLT.js → chunk-5UCQ4CTG.js} +4571 -4502
  5. package/dist/{chunk-Q2FZSDFG.js → chunk-6XSCWMWF.js} +1 -1
  6. package/dist/{chunk-NTLOY7SP.js → chunk-GL3YWOBS.js} +1 -1
  7. package/dist/{chunk-2AJZDGEL.js → chunk-JG7RZOLG.js} +1 -1
  8. package/dist/{chunk-GT5TOHOY.js → chunk-JU7EXT2K.js} +1 -1
  9. package/dist/{chunk-YIOZ7W3M.js → chunk-MOKEWGED.js} +3 -3
  10. package/dist/{chunk-XV6DBK4C.js → chunk-MWLJU6TX.js} +3 -3
  11. package/dist/{chunk-RPGVVVJD.js → chunk-OFZJJRJG.js} +3 -3
  12. package/dist/{chunk-PJAWRHHZ.js → chunk-QUYCPKAV.js} +2 -2
  13. package/dist/{chunk-YAKNCBUK.js → chunk-UTVPFCAV.js} +8 -8
  14. package/dist/{chunk-CNWA5PU3.js → chunk-YRAEI25P.js} +1 -1
  15. package/dist/{chunk-FMK32RJF.js → chunk-ZUJOFDF5.js} +5 -5
  16. package/dist/{doctor-HENBO5YV.js → doctor-L22YVTB2.js} +8 -8
  17. package/dist/index.js +89 -34
  18. package/dist/{launch-DMKAPDO4.js → launch-QG6GW2RQ.js} +11 -11
  19. package/dist/pi-extensions/xgate.cjs +82 -17
  20. package/dist/{read-auth-26D4BRUP.js → read-auth-YA3TQYY6.js} +3 -3
  21. package/dist/{reconcile-6A5U2Q7Q.js → reconcile-TPFGJNMP.js} +4 -4
  22. package/dist/{status-GRLQL23D.js → status-GSCNQCSX.js} +8 -8
  23. package/dist/{sync-pull-MSYWP5WU.js → sync-pull-NCOPVSGZ.js} +4 -4
  24. package/dist/{task-access-grants-54GQX63L.js → task-access-grants-6TS6JMKK.js} +2 -2
  25. package/package.json +2 -2
@@ -9,7 +9,7 @@ import {
9
9
  paymentProtocolFor,
10
10
  taskmarketChain,
11
11
  verifierProviderId
12
- } from "./chunk-VTMYCZLT.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-VTMYCZLT.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-VTMYCZLT.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-VTMYCZLT.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-2AJZDGEL.js";
13
+ } from "./chunk-JG7RZOLG.js";
14
14
  import {
15
15
  createWalletAccountFromKeystore,
16
16
  keystoreExists,
17
17
  loadKeystore
18
- } from "./chunk-Q2FZSDFG.js";
18
+ } from "./chunk-6XSCWMWF.js";
19
19
  import {
20
20
  getTaskmarketHome
21
- } from "./chunk-VTMYCZLT.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-2AJZDGEL.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-Q2FZSDFG.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-VTMYCZLT.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-GT5TOHOY.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-XV6DBK4C.js";
19
+ } from "./chunk-MWLJU6TX.js";
20
20
  import {
21
21
  getTaskmarketHome
22
- } from "./chunk-VTMYCZLT.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-Q2FZSDFG.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-VTMYCZLT.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-XV6DBK4C.js";
4
+ } from "./chunk-MWLJU6TX.js";
5
5
  import {
6
6
  signReadAuth
7
- } from "./chunk-PJAWRHHZ.js";
7
+ } from "./chunk-QUYCPKAV.js";
8
8
  import {
9
9
  taskAccessGrantHeaders
10
- } from "./chunk-NTLOY7SP.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-Q2FZSDFG.js";
18
+ } from "./chunk-6XSCWMWF.js";
19
19
  import {
20
20
  TaskAwardSchema,
21
21
  buildClaimMessage,
22
22
  buildSubmitMessage,
23
23
  isRecordingPendingResponse
24
- } from "./chunk-VTMYCZLT.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-H7VPA6C6.js");
112
- const { signReadAuth: signReadAuth2 } = await import("./read-auth-26D4BRUP.js");
113
- const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-54GQX63L.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-GT5TOHOY.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-RPGVVVJD.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-GT5TOHOY.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-YIOZ7W3M.js";
24
+ } from "./chunk-MOKEWGED.js";
25
25
  import {
26
26
  apiUrl,
27
27
  selectedNetwork
28
- } from "./chunk-Q2FZSDFG.js";
28
+ } from "./chunk-6XSCWMWF.js";
29
29
  import {
30
30
  SandboxListOutputSchema
31
- } from "./chunk-VTMYCZLT.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-FMK32RJF.js";
5
- import "./chunk-RPGVVVJD.js";
6
- import "./chunk-GT5TOHOY.js";
7
- import "./chunk-XV6DBK4C.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-YIOZ7W3M.js";
17
+ } from "./chunk-MOKEWGED.js";
18
18
  import {
19
19
  getX402PolicyPath,
20
20
  loadX402Policy,
21
21
  rpcUrlForNetwork
22
- } from "./chunk-2AJZDGEL.js";
22
+ } from "./chunk-JG7RZOLG.js";
23
23
  import {
24
24
  apiUrl,
25
25
  keystoreExists,
26
26
  loadKeystore,
27
27
  withChainId
28
- } from "./chunk-Q2FZSDFG.js";
29
- import "./chunk-VTMYCZLT.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-YAKNCBUK.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-XV6DBK4C.js";
38
+ } from "./chunk-MWLJU6TX.js";
39
39
  import {
40
40
  signReadAuth
41
- } from "./chunk-PJAWRHHZ.js";
41
+ } from "./chunk-QUYCPKAV.js";
42
42
  import {
43
43
  saveTaskAccessGrant,
44
44
  taskAccessGrantHeaders
45
- } from "./chunk-NTLOY7SP.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-2AJZDGEL.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-Q2FZSDFG.js";
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-VTMYCZLT.js";
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-DMKAPDO4.js");
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-GRLQL23D.js");
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-HENBO5YV.js");
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-6A5U2Q7Q.js");
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-4IFPTRDY.js");
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-4IFPTRDY.js");
10845
- const { reconcileLeasedPurchase } = await import("./reconcile-6A5U2Q7Q.js");
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-MSYWP5WU.js");
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
- ).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
+ }
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?${inboxParams.toString()}`, {
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
- ).action(async (opts) => {
21746
- const budget = parseAmount(opts.budget, "--budget");
21747
- if (typeof budget !== "string") return void printError(budget.error);
21748
- const endsAt = parseEndsAt(opts.endsAt);
21749
- if (typeof endsAt !== "string") return void printError(endsAt.error);
21750
- const taskGraceSecs = opts.taskGrace === void 0 ? void 0 : parseTaskGrace(opts.taskGrace);
21751
- if (typeof taskGraceSecs === "object") return void printError(taskGraceSecs.error);
21752
- await postProjectWrite(
21753
- "/api/projects",
21754
- { budget, endsAt, ...taskGraceSecs === void 0 ? {} : { taskGraceSecs } },
21755
- { maxAmount: budget }
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-RPGVVVJD.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-CNWA5PU3.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-GT5TOHOY.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-YAKNCBUK.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-XV6DBK4C.js";
91
+ } from "./chunk-MWLJU6TX.js";
92
92
  import {
93
93
  signReadAuth
94
- } from "./chunk-PJAWRHHZ.js";
94
+ } from "./chunk-QUYCPKAV.js";
95
95
  import {
96
96
  taskAccessGrantHeaders
97
- } from "./chunk-NTLOY7SP.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-YIOZ7W3M.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-2AJZDGEL.js";
131
+ } from "./chunk-JG7RZOLG.js";
132
132
  import {
133
133
  apiUrl,
134
134
  keystoreExists,
135
135
  loadKeystore,
136
136
  selectedNetwork
137
- } from "./chunk-Q2FZSDFG.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-VTMYCZLT.js";
146
+ } from "./chunk-5UCQ4CTG.js";
147
147
  import {
148
148
  AgentLaunchError
149
149
  } from "./chunk-YM4S6IE4.js";