@lucid-agents/taskmarket 1.37.0 → 1.38.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-X7M5ZRFO.js → api-TC2WI2WY.js} +2 -2
  3. package/dist/{channels-JRY5YSNU.js → channels-UFRYFVIT.js} +4 -4
  4. package/dist/{chunk-NO227FAP.js → chunk-3VNJBJSK.js} +1 -1
  5. package/dist/{chunk-YQLA6EXP.js → chunk-6JQ7KVVK.js} +1 -1
  6. package/dist/{chunk-SKD2T3UR.js → chunk-7RISA22K.js} +1 -1
  7. package/dist/{chunk-IDSGZXDR.js → chunk-HF6T5WRD.js} +3 -3
  8. package/dist/{chunk-HNTWHQBL.js → chunk-LOUQO73Y.js} +5 -5
  9. package/dist/{chunk-5YGFSGJA.js → chunk-PYXJTK3J.js} +1 -1
  10. package/dist/{chunk-TDQHU2JT.js → chunk-QGTMCIZ3.js} +2 -2
  11. package/dist/{chunk-XL76RC3P.js → chunk-U6KNPJQ3.js} +1 -1
  12. package/dist/{chunk-OK3AHSZH.js → chunk-UWGOLGKA.js} +8 -8
  13. package/dist/{chunk-M2UVDGSH.js → chunk-WOQ6DNU2.js} +3 -3
  14. package/dist/{chunk-ATZLUOQX.js → chunk-XSYOVYGF.js} +3 -3
  15. package/dist/{chunk-AUDDFWKQ.js → chunk-YGYWUPFH.js} +19 -1
  16. package/dist/{doctor-QGHPARVU.js → doctor-3X5OIY5A.js} +8 -8
  17. package/dist/index.js +42 -27
  18. package/dist/{launch-6VCLZ7XR.js → launch-YMPZUCU6.js} +11 -11
  19. package/dist/pi-extensions/xgate.cjs +19 -1
  20. package/dist/{read-auth-AVN4SJSZ.js → read-auth-7HZZGCWW.js} +3 -3
  21. package/dist/{reconcile-HEON5ETE.js → reconcile-KV6XDQVM.js} +4 -4
  22. package/dist/{status-6PCJLCTM.js → status-JBJOPZQO.js} +8 -8
  23. package/dist/{sync-pull-62R4YTEO.js → sync-pull-EJMIUSC6.js} +4 -4
  24. package/dist/{task-access-grants-MIWSFZZ3.js → task-access-grants-BIPLWENT.js} +2 -2
  25. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "taskmarket": "1.37.0",
2
+ "taskmarket": "1.38.0",
3
3
  "manifestVersion": 1,
4
4
  "pi": {
5
5
  "package": "@earendil-works/pi-coding-agent",
@@ -14,8 +14,8 @@ import {
14
14
  parseFailureBody,
15
15
  readFailureBody,
16
16
  withErrorContext
17
- } from "./chunk-XL76RC3P.js";
18
- import "./chunk-AUDDFWKQ.js";
17
+ } from "./chunk-U6KNPJQ3.js";
18
+ import "./chunk-YGYWUPFH.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-M2UVDGSH.js";
14
- import "./chunk-YQLA6EXP.js";
15
- import "./chunk-XL76RC3P.js";
16
- import "./chunk-AUDDFWKQ.js";
13
+ } from "./chunk-WOQ6DNU2.js";
14
+ import "./chunk-6JQ7KVVK.js";
15
+ import "./chunk-U6KNPJQ3.js";
16
+ import "./chunk-YGYWUPFH.js";
17
17
  import "./chunk-YM4S6IE4.js";
18
18
  import "./chunk-XJOB4NMV.js";
19
19
  import "./chunk-S7SJMJ2I.js";
@@ -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-AUDDFWKQ.js";
4
+ } from "./chunk-YGYWUPFH.js";
5
5
  import {
6
6
  AgentLaunchError
7
7
  } from "./chunk-YM4S6IE4.js";
@@ -8,7 +8,7 @@ import {
8
8
  getTaskmarketHome,
9
9
  mppAttributionMemo,
10
10
  parseMppChallenge
11
- } from "./chunk-AUDDFWKQ.js";
11
+ } from "./chunk-YGYWUPFH.js";
12
12
 
13
13
  // ../../packages/x402-payer/dist/api.js
14
14
  var X402_PAYER_API_VERSION = 1;
@@ -22,7 +22,7 @@ import {
22
22
  unresolvedCount,
23
23
  updateSyncState,
24
24
  uploadWorkspace
25
- } from "./chunk-NO227FAP.js";
25
+ } from "./chunk-3VNJBJSK.js";
26
26
  import {
27
27
  AgentLaunchError
28
28
  } from "./chunk-YM4S6IE4.js";
@@ -15,7 +15,7 @@ import {
15
15
  readMppTempoChallenge,
16
16
  reconcileX402Payment,
17
17
  withX402FileLock
18
- } from "./chunk-YQLA6EXP.js";
18
+ } from "./chunk-6JQ7KVVK.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-XL76RC3P.js";
39
+ } from "./chunk-U6KNPJQ3.js";
40
40
  import {
41
41
  ComputeCreditBuyOutputSchema,
42
42
  ComputeCreditPricingSchema,
43
43
  ComputeCreditStatusOutputSchema,
44
44
  apiErrorEnvelopeOf,
45
45
  getTaskmarketHome
46
- } from "./chunk-AUDDFWKQ.js";
46
+ } from "./chunk-YGYWUPFH.js";
47
47
 
48
48
  // src/lib/x402-fee.ts
49
49
  import { randomUUID as randomUUID3 } from "crypto";
@@ -6,14 +6,14 @@ import {
6
6
  loadDeliverableRecord,
7
7
  readComputeView,
8
8
  taskStage
9
- } from "./chunk-ATZLUOQX.js";
9
+ } from "./chunk-XSYOVYGF.js";
10
10
  import {
11
11
  activeClaim,
12
12
  captureProblem,
13
13
  killedSession,
14
14
  loadSyncState,
15
15
  orphanOf
16
- } from "./chunk-NO227FAP.js";
16
+ } from "./chunk-3VNJBJSK.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-M2UVDGSH.js";
24
+ } from "./chunk-WOQ6DNU2.js";
25
25
  import {
26
26
  apiUrl,
27
27
  selectedNetwork
28
- } from "./chunk-XL76RC3P.js";
28
+ } from "./chunk-U6KNPJQ3.js";
29
29
  import {
30
30
  SandboxListOutputSchema
31
- } from "./chunk-AUDDFWKQ.js";
31
+ } from "./chunk-YGYWUPFH.js";
32
32
  import {
33
33
  AgentLaunchError
34
34
  } from "./chunk-YM4S6IE4.js";
@@ -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-AUDDFWKQ.js";
5
+ } from "./chunk-YGYWUPFH.js";
6
6
 
7
7
  // src/lib/task-access-grants.ts
8
8
  import { promises as fs } from "fs";
@@ -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-XL76RC3P.js";
5
+ } from "./chunk-U6KNPJQ3.js";
6
6
  import {
7
7
  READ_AUTH_ADDRESS_HEADER,
8
8
  READ_AUTH_SIGNATURE_HEADER,
9
9
  buildReadAuthMessage
10
- } from "./chunk-AUDDFWKQ.js";
10
+ } from "./chunk-YGYWUPFH.js";
11
11
 
12
12
  // src/lib/read-auth.ts
13
13
  async function signReadAuth(signal) {
@@ -9,7 +9,7 @@ import {
9
9
  paymentProtocolFor,
10
10
  taskmarketChain,
11
11
  verifierProviderId
12
- } from "./chunk-AUDDFWKQ.js";
12
+ } from "./chunk-YGYWUPFH.js";
13
13
 
14
14
  // src/lib/idempotency.ts
15
15
  import { randomUUID } from "crypto";
@@ -1,13 +1,13 @@
1
1
  import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
2
2
  import {
3
3
  x402FeePost
4
- } from "./chunk-IDSGZXDR.js";
4
+ } from "./chunk-HF6T5WRD.js";
5
5
  import {
6
6
  signReadAuth
7
- } from "./chunk-TDQHU2JT.js";
7
+ } from "./chunk-QGTMCIZ3.js";
8
8
  import {
9
9
  taskAccessGrantHeaders
10
- } from "./chunk-5YGFSGJA.js";
10
+ } from "./chunk-PYXJTK3J.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-XL76RC3P.js";
18
+ } from "./chunk-U6KNPJQ3.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-AUDDFWKQ.js";
26
+ } from "./chunk-YGYWUPFH.js";
27
27
 
28
28
  // src/sdk/artifact-upload.ts
29
29
  import { extname } from "path";
@@ -115,9 +115,9 @@ function putArtifactBytes(uploadUrl, data, mimeType, onProgress, idleTimeoutMs =
115
115
  // src/lib/worker-attestation.ts
116
116
  var requirementCache = /* @__PURE__ */ new Map();
117
117
  async function defaultGet(path) {
118
- const { apiGet: apiGet2 } = await import("./api-X7M5ZRFO.js");
119
- const { signReadAuth: signReadAuth2 } = await import("./read-auth-AVN4SJSZ.js");
120
- const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-MIWSFZZ3.js");
118
+ const { apiGet: apiGet2 } = await import("./api-TC2WI2WY.js");
119
+ const { signReadAuth: signReadAuth2 } = await import("./read-auth-7HZZGCWW.js");
120
+ const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-BIPLWENT.js");
121
121
  const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
122
122
  return apiGet2(path, {
123
123
  headers: {
@@ -10,16 +10,16 @@ import {
10
10
  listX402Payments,
11
11
  loadX402Policy,
12
12
  rpcUrlForNetwork
13
- } from "./chunk-YQLA6EXP.js";
13
+ } from "./chunk-6JQ7KVVK.js";
14
14
  import {
15
15
  createWalletAccountFromKeystore,
16
16
  keystoreExists,
17
17
  loadKeystore
18
- } from "./chunk-XL76RC3P.js";
18
+ } from "./chunk-U6KNPJQ3.js";
19
19
  import {
20
20
  getTaskmarketHome,
21
21
  taskmarketChain
22
- } from "./chunk-AUDDFWKQ.js";
22
+ } from "./chunk-YGYWUPFH.js";
23
23
  import {
24
24
  AgentLaunchError
25
25
  } from "./chunk-YM4S6IE4.js";
@@ -8,7 +8,7 @@ import {
8
8
  unsafeHostPath,
9
9
  withFileLock,
10
10
  writeAtomic
11
- } from "./chunk-NO227FAP.js";
11
+ } from "./chunk-3VNJBJSK.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-IDSGZXDR.js";
19
+ } from "./chunk-HF6T5WRD.js";
20
20
  import {
21
21
  getTaskmarketHome
22
- } from "./chunk-AUDDFWKQ.js";
22
+ } from "./chunk-YGYWUPFH.js";
23
23
  import {
24
24
  AgentLaunchError
25
25
  } from "./chunk-YM4S6IE4.js";
@@ -1524,7 +1524,17 @@ var TaskDropGetInputSchema = z7.object({
1524
1524
  });
1525
1525
  var TaskDropDirectoryInputSchema = z7.object({
1526
1526
  cursor: z7.string().min(1).max(2048).optional(),
1527
- limit: z7.number().int().min(1).max(48).optional().default(24)
1527
+ limit: z7.number().int().min(1).max(48).optional().default(24),
1528
+ /**
1529
+ * `ended` lists only drops with no task accepting work, newest first (the Past drops tab).
1530
+ * Omitted, every public drop is listed with the ones accepting work first.
1531
+ */
1532
+ status: z7.enum(["ended"]).optional(),
1533
+ /**
1534
+ * Keeps only drops this wallet entered: it submitted work, pitched or bid on one of the drop's
1535
+ * tasks (the "Drops I entered" filter). Per wallet, so it is never cached.
1536
+ */
1537
+ worker: EthAddress.optional()
1528
1538
  });
1529
1539
  var TaskDropSummarySchema = z7.object({
1530
1540
  id: z7.string().min(1),
@@ -1561,7 +1571,13 @@ var TaskDropDirectoryItemSchema = z7.object({
1561
1571
  taskCount: z7.number().int().positive(),
1562
1572
  resolvedTaskCount: z7.number().int().nonnegative(),
1563
1573
  totalReward: z7.string().regex(/^\d+$/),
1574
+ /** Sum of the rewards of the drop's completed tasks: what the drop has paid out. */
1575
+ paidReward: z7.string().regex(/^\d+$/),
1576
+ /** Submissions across the drop's listed tasks. */
1577
+ entryCount: z7.number().int().nonnegative(),
1564
1578
  nextExpiryTime: z7.string().datetime().nullable(),
1579
+ /** The latest task deadline in the drop: when an ended drop closed. */
1580
+ lastExpiryTime: z7.string().datetime(),
1565
1581
  latestTaskAt: z7.string().datetime()
1566
1582
  });
1567
1583
  var TaskDropDirectoryResponseSchema = z7.object({
@@ -18280,6 +18296,8 @@ var BugReportCommentSchema = z101.object({
18280
18296
  authorAgentId: z101.string().nullable(),
18281
18297
  /** The comment is by the report's reporter. */
18282
18298
  isReporter: z101.boolean(),
18299
+ /** Taskmarket staff wrote it; `authorAddress` is then not a wallet. */
18300
+ isStaff: z101.boolean(),
18283
18301
  body: z101.string(),
18284
18302
  createdAt: z101.string()
18285
18303
  });
@@ -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-HNTWHQBL.js";
5
- import "./chunk-ATZLUOQX.js";
6
- import "./chunk-NO227FAP.js";
7
- import "./chunk-IDSGZXDR.js";
4
+ } from "./chunk-LOUQO73Y.js";
5
+ import "./chunk-XSYOVYGF.js";
6
+ import "./chunk-3VNJBJSK.js";
7
+ import "./chunk-HF6T5WRD.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-M2UVDGSH.js";
19
+ } from "./chunk-WOQ6DNU2.js";
20
20
  import {
21
21
  getX402PolicyPath,
22
22
  loadX402Policy,
23
23
  rpcUrlForNetwork
24
- } from "./chunk-YQLA6EXP.js";
24
+ } from "./chunk-6JQ7KVVK.js";
25
25
  import {
26
26
  apiUrl,
27
27
  keystoreExists,
28
28
  loadKeystore,
29
29
  withChainId
30
- } from "./chunk-XL76RC3P.js";
31
- import "./chunk-AUDDFWKQ.js";
30
+ } from "./chunk-U6KNPJQ3.js";
31
+ import "./chunk-YGYWUPFH.js";
32
32
  import "./chunk-YM4S6IE4.js";
33
33
  import {
34
34
  AGENT_VIEW_VERSION
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  listWorkerSubmissions,
15
15
  submitTaskFiles,
16
16
  taskRequirementsOf
17
- } from "./chunk-OK3AHSZH.js";
17
+ } from "./chunk-UWGOLGKA.js";
18
18
  import {
19
19
  ComputeCreditError,
20
20
  applyComputeCreditSetup,
@@ -37,14 +37,14 @@ import {
37
37
  releasePendingComputePurchase,
38
38
  resolvePendingComputePurchases,
39
39
  x402FeePost
40
- } from "./chunk-IDSGZXDR.js";
40
+ } from "./chunk-HF6T5WRD.js";
41
41
  import {
42
42
  signReadAuth
43
- } from "./chunk-TDQHU2JT.js";
43
+ } from "./chunk-QGTMCIZ3.js";
44
44
  import {
45
45
  saveTaskAccessGrant,
46
46
  taskAccessGrantHeaders
47
- } from "./chunk-5YGFSGJA.js";
47
+ } from "./chunk-PYXJTK3J.js";
48
48
  import {
49
49
  MPP_TEMPO_DEFAULT_VALIDITY_SECONDS,
50
50
  X402PayError,
@@ -62,7 +62,7 @@ import {
62
62
  setX402PolicyRuleEnabled,
63
63
  signSponsoredTempoTransfer,
64
64
  signTaskmarketFeePayment
65
- } from "./chunk-YQLA6EXP.js";
65
+ } from "./chunk-6JQ7KVVK.js";
66
66
  import {
67
67
  ALL_NETWORKS,
68
68
  ApiError,
@@ -125,7 +125,7 @@ import {
125
125
  withErrorContext,
126
126
  withIdempotentWrite,
127
127
  withTapSignature
128
- } from "./chunk-XL76RC3P.js";
128
+ } from "./chunk-U6KNPJQ3.js";
129
129
  import {
130
130
  AGENT_AVATAR_MAX_BYTES,
131
131
  AGENT_HIRES_ROLES,
@@ -352,7 +352,7 @@ import {
352
352
  vaultCallGasLimit7702,
353
353
  verifierProviderId,
354
354
  verifiersUnsupportedOnChain
355
- } from "./chunk-AUDDFWKQ.js";
355
+ } from "./chunk-YGYWUPFH.js";
356
356
  import "./chunk-S7SJMJ2I.js";
357
357
 
358
358
  // src/index.ts
@@ -12987,7 +12987,7 @@ async function runAgentCommand(options) {
12987
12987
  try {
12988
12988
  const { assertAgentCompatibility } = await import("./compatibility-636WJOEX.js");
12989
12989
  const pi = assertAgentCompatibility();
12990
- const { runAgent } = await import("./launch-6VCLZ7XR.js");
12990
+ const { runAgent } = await import("./launch-YMPZUCU6.js");
12991
12991
  result = await runAgent({
12992
12992
  model: options.model,
12993
12993
  pi,
@@ -13421,13 +13421,13 @@ function agentManagementCommands() {
13421
13421
  const status = new Command57("status").description(
13422
13422
  "Show the agent channels (locked, charged, refundable), purchases with an unknown outcome, the sandbox and compute credit. Reads only."
13423
13423
  ).action(async () => {
13424
- const { collectAgentStatus } = await import("./status-6PCJLCTM.js");
13424
+ const { collectAgentStatus } = await import("./status-JBJOPZQO.js");
13425
13425
  await run(() => collectAgentStatus());
13426
13426
  });
13427
13427
  const doctor = new Command57("doctor").description(
13428
13428
  "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."
13429
13429
  ).action(async () => {
13430
- const { runDoctor } = await import("./doctor-QGHPARVU.js");
13430
+ const { runDoctor } = await import("./doctor-3X5OIY5A.js");
13431
13431
  const report = await run(() => runDoctor());
13432
13432
  if (report && !report.ok) process.exitCode = 1;
13433
13433
  });
@@ -13438,7 +13438,7 @@ function agentManagementCommands() {
13438
13438
  "Reconcile the open purchases of this channel, as status lists it; also reaches retired channels"
13439
13439
  ).action(
13440
13440
  async (invocationId, options) => {
13441
- const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-HEON5ETE.js");
13441
+ const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-KV6XDQVM.js");
13442
13442
  const choice = { rail: options.rail, channel: options.channel };
13443
13443
  if (invocationId !== void 0) {
13444
13444
  await run(() => reconcileInvocation(invocationId, { choice }));
@@ -13470,7 +13470,7 @@ function agentManagementCommands() {
13470
13470
  `Not a USDC amount: ${options.amount} (digits, at most 6 decimals)`
13471
13471
  );
13472
13472
  }
13473
- const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-JRY5YSNU.js");
13473
+ const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-UFRYFVIT.js");
13474
13474
  const { rails } = await openAgentChannels();
13475
13475
  const result = await requestTopUp(selectRail(rails, options.rail), amount);
13476
13476
  return {
@@ -13490,8 +13490,8 @@ function agentManagementCommands() {
13490
13490
  await run(async () => {
13491
13491
  await requireExperimental();
13492
13492
  const { AGENT_VIEW_VERSION } = await import("./budget-view-J6L7X6EY.js");
13493
- const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-JRY5YSNU.js");
13494
- const { reconcileLeasedPurchase } = await import("./reconcile-HEON5ETE.js");
13493
+ const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-UFRYFVIT.js");
13494
+ const { reconcileLeasedPurchase } = await import("./reconcile-KV6XDQVM.js");
13495
13495
  const opened = await openAgentChannels();
13496
13496
  const { rail, retired } = selectChannel(opened, options);
13497
13497
  const result = await closeChannel(
@@ -13545,7 +13545,7 @@ function agentManagementCommands() {
13545
13545
  async (options) => {
13546
13546
  await run(async () => {
13547
13547
  await requireExperimental();
13548
- const { runPull } = await import("./sync-pull-62R4YTEO.js");
13548
+ const { runPull } = await import("./sync-pull-EJMIUSC6.js");
13549
13549
  const { terminalPrompter } = await import("./prompter-LSICEYSQ.js");
13550
13550
  return runPull(options, {
13551
13551
  interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
@@ -27508,19 +27508,34 @@ var workflowCommand = new Command146("workflow").description(
27508
27508
 
27509
27509
  // src/commands/drops.ts
27510
27510
  import { Command as Command147 } from "commander";
27511
- var listCommand9 = new Command147("list").description("List public Task Drops, ones accepting work first").option("--limit <n>", "Maximum drops to return (1-48)", "24").option("--cursor <cursor>", "nextCursor from a previous page").action(async (opts) => {
27512
- try {
27513
- const input = parseInput(TaskDropDirectoryInputSchema, {
27514
- limit: optionalInt(opts.limit),
27515
- cursor: opts.cursor
27516
- });
27517
- const params = new URLSearchParams({ limit: String(input.limit) });
27518
- if (input.cursor) params.set("cursor", input.cursor);
27519
- printResult(await apiGet(`/api/task-drops/directory?${params.toString()}`));
27520
- } catch (err) {
27521
- renderFailure(err);
27511
+ var listCommand9 = new Command147("list").description("List public Task Drops, ones accepting work first").option("--limit <n>", "Maximum drops to return (1-48)", "24").option("--cursor <cursor>", "nextCursor from a previous page").option("--status <status>", "ended: only drops no longer accepting work, newest first").option("--worker <address>", "Only drops this wallet entered (a submission, pitch or bid)").option("--entered", "Only drops your wallet entered (--worker with your own address)").action(
27512
+ async (opts) => {
27513
+ try {
27514
+ if (opts.worker && opts.entered) throw new Error("Pass --worker or --entered, not both");
27515
+ let worker = opts.worker;
27516
+ if (opts.entered) {
27517
+ try {
27518
+ worker = (await loadKeystore()).walletAddress;
27519
+ } catch {
27520
+ throw new Error("No keystore found. Run `taskmarket init` first, or pass --worker.");
27521
+ }
27522
+ }
27523
+ const input = parseInput(TaskDropDirectoryInputSchema, {
27524
+ limit: optionalInt(opts.limit),
27525
+ cursor: opts.cursor,
27526
+ status: opts.status,
27527
+ worker
27528
+ });
27529
+ const params = new URLSearchParams({ limit: String(input.limit) });
27530
+ if (input.cursor) params.set("cursor", input.cursor);
27531
+ if (input.status) params.set("status", input.status);
27532
+ if (input.worker) params.set("worker", input.worker.toLowerCase());
27533
+ printResult(await apiGet(`/api/task-drops/directory?${params.toString()}`));
27534
+ } catch (err) {
27535
+ renderFailure(err);
27536
+ }
27522
27537
  }
27523
- });
27538
+ );
27524
27539
  var showCommand6 = new Command147("show").description("Show a Task Drop and its discoverable tasks").argument("<taskDropId>", "Task Drop ID").action(async (taskDropId) => {
27525
27540
  try {
27526
27541
  const input = parseInput(TaskDropGetInputSchema, { taskDropId });
@@ -38,7 +38,7 @@ import {
38
38
  sha256Hex,
39
39
  specHash,
40
40
  taskStage
41
- } from "./chunk-ATZLUOQX.js";
41
+ } from "./chunk-XSYOVYGF.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-SKD2T3UR.js";
50
+ } from "./chunk-7RISA22K.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-NO227FAP.js";
62
+ } from "./chunk-3VNJBJSK.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-OK3AHSZH.js";
81
+ } from "./chunk-UWGOLGKA.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-IDSGZXDR.js";
91
+ } from "./chunk-HF6T5WRD.js";
92
92
  import {
93
93
  signReadAuth
94
- } from "./chunk-TDQHU2JT.js";
94
+ } from "./chunk-QGTMCIZ3.js";
95
95
  import {
96
96
  taskAccessGrantHeaders
97
- } from "./chunk-5YGFSGJA.js";
97
+ } from "./chunk-PYXJTK3J.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-M2UVDGSH.js";
121
+ } from "./chunk-WOQ6DNU2.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-YQLA6EXP.js";
135
+ } from "./chunk-6JQ7KVVK.js";
136
136
  import {
137
137
  apiUrl,
138
138
  keystoreExists,
139
139
  loadKeystore,
140
140
  selectedNetwork
141
- } from "./chunk-XL76RC3P.js";
141
+ } from "./chunk-U6KNPJQ3.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-AUDDFWKQ.js";
150
+ } from "./chunk-YGYWUPFH.js";
151
151
  import {
152
152
  AgentLaunchError
153
153
  } from "./chunk-YM4S6IE4.js";
@@ -30822,7 +30822,17 @@ var TaskDropGetInputSchema = external_exports.object({
30822
30822
  });
30823
30823
  var TaskDropDirectoryInputSchema = external_exports.object({
30824
30824
  cursor: external_exports.string().min(1).max(2048).optional(),
30825
- limit: external_exports.number().int().min(1).max(48).optional().default(24)
30825
+ limit: external_exports.number().int().min(1).max(48).optional().default(24),
30826
+ /**
30827
+ * `ended` lists only drops with no task accepting work, newest first (the Past drops tab).
30828
+ * Omitted, every public drop is listed with the ones accepting work first.
30829
+ */
30830
+ status: external_exports.enum(["ended"]).optional(),
30831
+ /**
30832
+ * Keeps only drops this wallet entered: it submitted work, pitched or bid on one of the drop's
30833
+ * tasks (the "Drops I entered" filter). Per wallet, so it is never cached.
30834
+ */
30835
+ worker: EthAddress.optional()
30826
30836
  });
30827
30837
  var TaskDropSummarySchema = external_exports.object({
30828
30838
  id: external_exports.string().min(1),
@@ -30859,7 +30869,13 @@ var TaskDropDirectoryItemSchema = external_exports.object({
30859
30869
  taskCount: external_exports.number().int().positive(),
30860
30870
  resolvedTaskCount: external_exports.number().int().nonnegative(),
30861
30871
  totalReward: external_exports.string().regex(/^\d+$/),
30872
+ /** Sum of the rewards of the drop's completed tasks: what the drop has paid out. */
30873
+ paidReward: external_exports.string().regex(/^\d+$/),
30874
+ /** Submissions across the drop's listed tasks. */
30875
+ entryCount: external_exports.number().int().nonnegative(),
30862
30876
  nextExpiryTime: external_exports.string().datetime().nullable(),
30877
+ /** The latest task deadline in the drop: when an ended drop closed. */
30878
+ lastExpiryTime: external_exports.string().datetime(),
30863
30879
  latestTaskAt: external_exports.string().datetime()
30864
30880
  });
30865
30881
  var TaskDropDirectoryResponseSchema = external_exports.object({
@@ -81825,6 +81841,8 @@ var BugReportCommentSchema = external_exports.object({
81825
81841
  authorAgentId: external_exports.string().nullable(),
81826
81842
  /** The comment is by the report's reporter. */
81827
81843
  isReporter: external_exports.boolean(),
81844
+ /** Taskmarket staff wrote it; `authorAddress` is then not a wallet. */
81845
+ isStaff: external_exports.boolean(),
81828
81846
  body: external_exports.string(),
81829
81847
  createdAt: external_exports.string()
81830
81848
  });
@@ -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-TDQHU2JT.js";
5
- import "./chunk-XL76RC3P.js";
6
- import "./chunk-AUDDFWKQ.js";
4
+ } from "./chunk-QGTMCIZ3.js";
5
+ import "./chunk-U6KNPJQ3.js";
6
+ import "./chunk-YGYWUPFH.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-M2UVDGSH.js";
6
+ } from "./chunk-WOQ6DNU2.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-YQLA6EXP.js";
13
- import "./chunk-XL76RC3P.js";
14
- import "./chunk-AUDDFWKQ.js";
12
+ } from "./chunk-6JQ7KVVK.js";
13
+ import "./chunk-U6KNPJQ3.js";
14
+ import "./chunk-YGYWUPFH.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-HNTWHQBL.js";
8
- import "./chunk-ATZLUOQX.js";
9
- import "./chunk-NO227FAP.js";
10
- import "./chunk-IDSGZXDR.js";
11
- import "./chunk-M2UVDGSH.js";
12
- import "./chunk-YQLA6EXP.js";
13
- import "./chunk-XL76RC3P.js";
14
- import "./chunk-AUDDFWKQ.js";
7
+ } from "./chunk-LOUQO73Y.js";
8
+ import "./chunk-XSYOVYGF.js";
9
+ import "./chunk-3VNJBJSK.js";
10
+ import "./chunk-HF6T5WRD.js";
11
+ import "./chunk-WOQ6DNU2.js";
12
+ import "./chunk-6JQ7KVVK.js";
13
+ import "./chunk-U6KNPJQ3.js";
14
+ import "./chunk-YGYWUPFH.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-SKD2T3UR.js";
14
+ } from "./chunk-7RISA22K.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-NO227FAP.js";
30
+ } from "./chunk-3VNJBJSK.js";
31
31
  import {
32
32
  apiUrl,
33
33
  loadKeystore
34
- } from "./chunk-XL76RC3P.js";
35
- import "./chunk-AUDDFWKQ.js";
34
+ } from "./chunk-U6KNPJQ3.js";
35
+ import "./chunk-YGYWUPFH.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-5YGFSGJA.js";
7
- import "./chunk-AUDDFWKQ.js";
6
+ } from "./chunk-PYXJTK3J.js";
7
+ import "./chunk-YGYWUPFH.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.37.0",
3
+ "version": "1.38.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "taskmarket": "./dist/index.js"