@lucid-agents/taskmarket 1.28.0 → 1.29.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-IV2LK5CF.js → api-4UFXNF3X.js} +2 -2
  3. package/dist/{channels-GM4PE3LJ.js → channels-UJ32F6KT.js} +4 -4
  4. package/dist/{chunk-6XSCWMWF.js → chunk-44AGKANB.js} +1 -1
  5. package/dist/{chunk-MWLJU6TX.js → chunk-6QD7LE3R.js} +3 -3
  6. package/dist/{chunk-JG7RZOLG.js → chunk-6QUNPM4S.js} +1 -1
  7. package/dist/{chunk-YRAEI25P.js → chunk-A4M344DT.js} +1 -1
  8. package/dist/{chunk-MOKEWGED.js → chunk-BXZHXNZZ.js} +3 -3
  9. package/dist/{chunk-ZUJOFDF5.js → chunk-CLFA6AAX.js} +5 -5
  10. package/dist/{chunk-5UCQ4CTG.js → chunk-FQIK5KSR.js} +2885 -2498
  11. package/dist/{chunk-OFZJJRJG.js → chunk-LLDTXUHC.js} +3 -3
  12. package/dist/{chunk-QUYCPKAV.js → chunk-LRCJQWAT.js} +2 -2
  13. package/dist/{chunk-JU7EXT2K.js → chunk-R7FABEN6.js} +1 -1
  14. package/dist/{chunk-UTVPFCAV.js → chunk-VABTHZFQ.js} +9 -8
  15. package/dist/{chunk-GL3YWOBS.js → chunk-XUBYHJMJ.js} +1 -1
  16. package/dist/{doctor-L22YVTB2.js → doctor-HRIWE4JV.js} +8 -8
  17. package/dist/index.js +57 -25
  18. package/dist/{launch-QG6GW2RQ.js → launch-ZER5DDN3.js} +11 -11
  19. package/dist/pi-extensions/xgate.cjs +2645 -2261
  20. package/dist/{read-auth-YA3TQYY6.js → read-auth-D5OASV5M.js} +3 -3
  21. package/dist/{reconcile-TPFGJNMP.js → reconcile-VEEAEVG7.js} +4 -4
  22. package/dist/{status-GSCNQCSX.js → status-BDVDZCU2.js} +8 -8
  23. package/dist/{sync-pull-NCOPVSGZ.js → sync-pull-QXN3V4MI.js} +4 -4
  24. package/dist/{task-access-grants-6TS6JMKK.js → task-access-grants-RS4O6LUB.js} +2 -2
  25. package/package.json +3 -3
@@ -8,7 +8,7 @@ import {
8
8
  unsafeHostPath,
9
9
  withFileLock,
10
10
  writeAtomic
11
- } from "./chunk-JU7EXT2K.js";
11
+ } from "./chunk-R7FABEN6.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-MWLJU6TX.js";
19
+ } from "./chunk-6QD7LE3R.js";
20
20
  import {
21
21
  getTaskmarketHome
22
- } from "./chunk-5UCQ4CTG.js";
22
+ } from "./chunk-FQIK5KSR.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-6XSCWMWF.js";
5
+ } from "./chunk-44AGKANB.js";
6
6
  import {
7
7
  READ_AUTH_ADDRESS_HEADER,
8
8
  READ_AUTH_SIGNATURE_HEADER,
9
9
  buildReadAuthMessage
10
- } from "./chunk-5UCQ4CTG.js";
10
+ } from "./chunk-FQIK5KSR.js";
11
11
 
12
12
  // src/lib/read-auth.ts
13
13
  async function signReadAuth() {
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
2
2
  import {
3
3
  getTaskmarketHome
4
- } from "./chunk-5UCQ4CTG.js";
4
+ } from "./chunk-FQIK5KSR.js";
5
5
  import {
6
6
  AgentLaunchError
7
7
  } from "./chunk-YM4S6IE4.js";
@@ -1,13 +1,13 @@
1
1
  import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
2
2
  import {
3
3
  x402FeePost
4
- } from "./chunk-MWLJU6TX.js";
4
+ } from "./chunk-6QD7LE3R.js";
5
5
  import {
6
6
  signReadAuth
7
- } from "./chunk-QUYCPKAV.js";
7
+ } from "./chunk-LRCJQWAT.js";
8
8
  import {
9
9
  taskAccessGrantHeaders
10
- } from "./chunk-GL3YWOBS.js";
10
+ } from "./chunk-XUBYHJMJ.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-6XSCWMWF.js";
18
+ } from "./chunk-44AGKANB.js";
19
19
  import {
20
20
  TaskAwardSchema,
21
21
  buildClaimMessage,
22
22
  buildSubmitMessage,
23
23
  isRecordingPendingResponse
24
- } from "./chunk-5UCQ4CTG.js";
24
+ } from "./chunk-FQIK5KSR.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-IV2LK5CF.js");
112
- const { signReadAuth: signReadAuth2 } = await import("./read-auth-YA3TQYY6.js");
113
- const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-6TS6JMKK.js");
111
+ const { apiGet: apiGet2 } = await import("./api-4UFXNF3X.js");
112
+ const { signReadAuth: signReadAuth2 } = await import("./read-auth-D5OASV5M.js");
113
+ const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-RS4O6LUB.js");
114
114
  const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
115
115
  return apiGet2(path, {
116
116
  headers: {
@@ -252,6 +252,7 @@ async function listTasks(ctx, filter = {}) {
252
252
  if (filter.mode) params.set("mode", filter.mode);
253
253
  if (filter.auctionType) params.set("auctionType", filter.auctionType);
254
254
  if (filter.tags) params.set("tags", filter.tags);
255
+ if (filter.capabilities) params.set("capabilities", filter.capabilities);
255
256
  if (filter.minReward) params.set("minReward", filter.minReward);
256
257
  if (filter.maxReward) params.set("maxReward", filter.maxReward);
257
258
  if (filter.minTotalReward) params.set("minTotalReward", filter.minTotalReward);
@@ -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-5UCQ4CTG.js";
5
+ } from "./chunk-FQIK5KSR.js";
6
6
 
7
7
  // src/lib/task-access-grants.ts
8
8
  import { promises as fs } from "fs";
@@ -1,10 +1,10 @@
1
1
  import { createRequire as __tmCreateRequire } from 'node:module'; import { fileURLToPath as __tmFileURLToPath } from 'node:url'; import { dirname as __tmDirname } from 'node:path'; const require = __tmCreateRequire(import.meta.url); const __tmFilename = __tmFileURLToPath(import.meta.url); const __tmDirnameValue = __tmDirname(__tmFilename);
2
2
  import {
3
3
  listSandboxes
4
- } from "./chunk-ZUJOFDF5.js";
5
- import "./chunk-OFZJJRJG.js";
6
- import "./chunk-JU7EXT2K.js";
7
- import "./chunk-MWLJU6TX.js";
4
+ } from "./chunk-CLFA6AAX.js";
5
+ import "./chunk-LLDTXUHC.js";
6
+ import "./chunk-R7FABEN6.js";
7
+ import "./chunk-6QD7LE3R.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-MOKEWGED.js";
17
+ } from "./chunk-BXZHXNZZ.js";
18
18
  import {
19
19
  getX402PolicyPath,
20
20
  loadX402Policy,
21
21
  rpcUrlForNetwork
22
- } from "./chunk-JG7RZOLG.js";
22
+ } from "./chunk-6QUNPM4S.js";
23
23
  import {
24
24
  apiUrl,
25
25
  keystoreExists,
26
26
  loadKeystore,
27
27
  withChainId
28
- } from "./chunk-6XSCWMWF.js";
29
- import "./chunk-5UCQ4CTG.js";
28
+ } from "./chunk-44AGKANB.js";
29
+ import "./chunk-FQIK5KSR.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-UTVPFCAV.js";
16
+ } from "./chunk-VABTHZFQ.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-MWLJU6TX.js";
38
+ } from "./chunk-6QD7LE3R.js";
39
39
  import {
40
40
  signReadAuth
41
- } from "./chunk-QUYCPKAV.js";
41
+ } from "./chunk-LRCJQWAT.js";
42
42
  import {
43
43
  saveTaskAccessGrant,
44
44
  taskAccessGrantHeaders
45
- } from "./chunk-GL3YWOBS.js";
45
+ } from "./chunk-XUBYHJMJ.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-JG7RZOLG.js";
63
+ } from "./chunk-6QUNPM4S.js";
64
64
  import {
65
65
  ApiError,
66
66
  KeystoreExistsError,
@@ -116,10 +116,11 @@ import {
116
116
  withErrorContext,
117
117
  withIdempotentWrite,
118
118
  withTapSignature
119
- } from "./chunk-6XSCWMWF.js";
119
+ } from "./chunk-44AGKANB.js";
120
120
  import {
121
121
  AGENT_AVATAR_MAX_BYTES,
122
122
  AGENT_HIRES_ROLES,
123
+ AGENT_LISTING_LIMITS,
123
124
  AGENT_LISTING_REPORT_REASONS,
124
125
  ActivityFeedInputSchema,
125
126
  ActivityHeatmapInputSchema,
@@ -138,6 +139,7 @@ import {
138
139
  BUG_REPORT_STATUSES,
139
140
  BUG_REPORT_VISIBILITIES,
140
141
  BugReportMessageBodySchema,
142
+ CAPABILITY_LIMIT_MESSAGE,
141
143
  CapabilitiesListInputSchema,
142
144
  CapabilitiesListResponseSchema,
143
145
  CrossChainFundingConfigOutputSchema,
@@ -207,6 +209,7 @@ import {
207
209
  SubmissionReviewTaskInputSchema,
208
210
  SubmitBugReportInputSchema,
209
211
  TaskActionQueueInputSchema,
212
+ TaskCapabilitiesSchema,
210
213
  TaskChildListSchema,
211
214
  TaskDropDirectoryInputSchema,
212
215
  TaskDropGetInputSchema,
@@ -298,7 +301,7 @@ import {
298
301
  vaultCallGasLimit7702,
299
302
  verifierProviderId,
300
303
  verifiersUnsupportedOnChain
301
- } from "./chunk-5UCQ4CTG.js";
304
+ } from "./chunk-FQIK5KSR.js";
302
305
  import "./chunk-S7SJMJ2I.js";
303
306
 
304
307
  // src/index.ts
@@ -7834,6 +7837,9 @@ var createCmd = new Command8("create").description("Create a new task (costs the
7834
7837
  "--require-verified <verifiers>",
7835
7838
  "Only workers one of these verifiers passes may work on the task (comma-separated; any one is enough): tap:identity:verified (verified agents) or tap:identity:known (known or verified agents). With --require-identity too, both must be met."
7836
7839
  ).option("--tags <tags>", "Comma-separated tags").option(
7840
+ "--capabilities <slugs>",
7841
+ "Comma-separated capability slugs the task needs, from `taskmarket capabilities` (active entries only; capped like a listing)"
7842
+ ).option(
7837
7843
  "--metric-description <text>",
7838
7844
  'Benchmark metric workers are ranked on, e.g. "Test suite pass rate" (benchmark mode only, max 500 characters)'
7839
7845
  ).option(
@@ -8049,6 +8055,12 @@ async function runCreateTask(opts, extra = {}) {
8049
8055
  if (longTag !== void 0) {
8050
8056
  return void printError(`Each tag must be at most ${TAG_MAX_BYTES} bytes: "${longTag}"`);
8051
8057
  }
8058
+ const capabilities = opts.capabilities ? opts.capabilities.split(",").map((slug) => slug.trim()).filter(Boolean) : [];
8059
+ if (capabilities.length > 0) {
8060
+ const parsed = TaskCapabilitiesSchema.safeParse(capabilities);
8061
+ if (!parsed.success)
8062
+ return void printError(parsed.error.issues.map((i) => i.message).join(". "));
8063
+ }
8052
8064
  const body = {
8053
8065
  ...extra.projectId !== void 0 ? { projectId: extra.projectId } : {},
8054
8066
  ...extra.continuation ? extra.continuation : {},
@@ -8061,6 +8073,9 @@ async function runCreateTask(opts, extra = {}) {
8061
8073
  submissionVisibility: opts.submissionVisibility,
8062
8074
  tags
8063
8075
  };
8076
+ if (capabilities.length > 0) {
8077
+ body.capabilities = capabilities;
8078
+ }
8064
8079
  if (allowedViewers && allowedViewers.length > 0) {
8065
8080
  body.allowedViewers = allowedViewers;
8066
8081
  }
@@ -8360,7 +8375,10 @@ var listCmd = new Command9("list").alias("search").description("List available t
8360
8375
  ).option("--mode <mode>", "Filter by mode (bounty, claim, pitch, benchmark, auction)").option(
8361
8376
  "--auction-type <type>",
8362
8377
  "Filter auction tasks by subtype (dutch, english, reverse_dutch, reverse_english)"
8363
- ).option("--tags <tags>", "Comma-separated tags to filter by").option("--skill <skill>", "Filter by skill tag (comma-separated, alias for --tags)").option("--reward-min <n>", "Minimum reward in the payment token").option("--reward-max <n>", "Maximum reward in the payment token").option(
8378
+ ).option("--tags <tags>", "Comma-separated tags to filter by").option(
8379
+ "--capabilities <slugs>",
8380
+ "Only tasks naming any of these capabilities (comma-separated slugs from `taskmarket capabilities`)"
8381
+ ).option("--skill <skill>", "Filter by skill tag (comma-separated, alias for --tags)").option("--reward-min <n>", "Minimum reward in the payment token").option("--reward-max <n>", "Maximum reward in the payment token").option(
8364
8382
  "--total-reward-min <n>",
8365
8383
  "Minimum total reward in USD: the USDC reward plus a sponsored reward valued at its approved vault's curator-set price (unpriced sponsored rewards add nothing)"
8366
8384
  ).option(
@@ -8388,6 +8406,7 @@ var listCmd = new Command9("list").alias("search").description("List available t
8388
8406
  mode: opts.mode,
8389
8407
  auctionType: opts.auctionType,
8390
8408
  tags: tagsValue,
8409
+ capabilities: opts.capabilities,
8391
8410
  minReward: opts.rewardMin ? String(Math.round(Number(opts.rewardMin) * 1e6)) : void 0,
8392
8411
  maxReward: opts.rewardMax ? String(Math.round(Number(opts.rewardMax) * 1e6)) : void 0,
8393
8412
  minTotalReward: opts.totalRewardMin ? String(Math.round(Number(opts.totalRewardMin) * 1e6)) : void 0,
@@ -10357,7 +10376,7 @@ async function runAgentCommand(options) {
10357
10376
  try {
10358
10377
  const { assertAgentCompatibility } = await import("./compatibility-636WJOEX.js");
10359
10378
  const pi = assertAgentCompatibility();
10360
- const { runAgent } = await import("./launch-QG6GW2RQ.js");
10379
+ const { runAgent } = await import("./launch-ZER5DDN3.js");
10361
10380
  result = await runAgent({
10362
10381
  model: options.model,
10363
10382
  pi,
@@ -10539,7 +10558,12 @@ profileCommand.command("set").description(
10539
10558
  collect3
10540
10559
  ).option("--clear-specialties", "Remove every specialty").option("--clear-capabilities", "Remove every capability").option("--avatar <file>", "Upload an avatar: a PNG, JPEG or WebP file of at most 1 MB").option("--clear-avatar", "Remove your uploaded avatar and use the generated one").action(async (opts) => {
10541
10560
  try {
10542
- if (opts.capability) assertSelectableCapabilities(opts.capability);
10561
+ if (opts.capability) {
10562
+ assertSelectableCapabilities(opts.capability);
10563
+ if (new Set(opts.capability).size > AGENT_LISTING_LIMITS.capabilitiesPerListingMax) {
10564
+ throw new Error(CAPABILITY_LIMIT_MESSAGE);
10565
+ }
10566
+ }
10543
10567
  if (opts.avatar !== void 0 && opts.clearAvatar) {
10544
10568
  throw new Error("Pass --avatar or --clear-avatar, not both");
10545
10569
  }
@@ -10566,12 +10590,16 @@ profileCommand.command("set").description(
10566
10590
  );
10567
10591
  }
10568
10592
  }
10593
+ const capabilities = opts.clearCapabilities ? [] : opts.capability ?? current.capabilities;
10594
+ if (capabilities.length > AGENT_LISTING_LIMITS.capabilitiesPerListingMax) {
10595
+ throw new Error(CAPABILITY_LIMIT_MESSAGE);
10596
+ }
10569
10597
  const profile = {
10570
10598
  displayName: opts.name ?? current.displayName ?? "",
10571
10599
  description: opts.description ?? current.description ?? "",
10572
10600
  roles: opts.role ?? (current.roles.length > 0 ? current.roles : ["worker"]),
10573
10601
  specialties: opts.clearSpecialties ? [] : opts.specialty ?? current.specialties.map((specialty) => specialty.label),
10574
- capabilities: opts.clearCapabilities ? [] : opts.capability ?? current.capabilities
10602
+ capabilities
10575
10603
  };
10576
10604
  const change = { action: "profile.set", profile };
10577
10605
  const humanRefusal = current.kind === "human" ? humanListingChangeError(change) : null;
@@ -10782,13 +10810,13 @@ function agentManagementCommands() {
10782
10810
  const status = new Command53("status").description(
10783
10811
  "Show the agent channels (locked, charged, refundable), purchases with an unknown outcome, the sandbox and compute credit. Reads only."
10784
10812
  ).action(async () => {
10785
- const { collectAgentStatus } = await import("./status-GSCNQCSX.js");
10813
+ const { collectAgentStatus } = await import("./status-BDVDZCU2.js");
10786
10814
  await run(() => collectAgentStatus());
10787
10815
  });
10788
10816
  const doctor = new Command53("doctor").description(
10789
10817
  "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."
10790
10818
  ).action(async () => {
10791
- const { runDoctor } = await import("./doctor-L22YVTB2.js");
10819
+ const { runDoctor } = await import("./doctor-HRIWE4JV.js");
10792
10820
  const report = await run(() => runDoctor());
10793
10821
  if (report && !report.ok) process.exitCode = 1;
10794
10822
  });
@@ -10799,7 +10827,7 @@ function agentManagementCommands() {
10799
10827
  "Reconcile the open purchases of this channel, as status lists it; also reaches retired channels"
10800
10828
  ).action(
10801
10829
  async (invocationId, options) => {
10802
- const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-TPFGJNMP.js");
10830
+ const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-VEEAEVG7.js");
10803
10831
  const choice = { rail: options.rail, channel: options.channel };
10804
10832
  if (invocationId !== void 0) {
10805
10833
  await run(() => reconcileInvocation(invocationId, { choice }));
@@ -10831,7 +10859,7 @@ function agentManagementCommands() {
10831
10859
  `Not a USDC amount: ${options.amount} (digits, at most 6 decimals)`
10832
10860
  );
10833
10861
  }
10834
- const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-GM4PE3LJ.js");
10862
+ const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-UJ32F6KT.js");
10835
10863
  const { rails } = await openAgentChannels();
10836
10864
  const result = await requestTopUp(selectRail(rails, options.rail), amount);
10837
10865
  return {
@@ -10851,8 +10879,8 @@ function agentManagementCommands() {
10851
10879
  await run(async () => {
10852
10880
  await requireExperimental();
10853
10881
  const { AGENT_VIEW_VERSION } = await import("./budget-view-J6L7X6EY.js");
10854
- const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-GM4PE3LJ.js");
10855
- const { reconcileLeasedPurchase } = await import("./reconcile-TPFGJNMP.js");
10882
+ const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-UJ32F6KT.js");
10883
+ const { reconcileLeasedPurchase } = await import("./reconcile-VEEAEVG7.js");
10856
10884
  const opened = await openAgentChannels();
10857
10885
  const { rail, retired } = selectChannel(opened, options);
10858
10886
  const result = await closeChannel(
@@ -10906,7 +10934,7 @@ function agentManagementCommands() {
10906
10934
  async (options) => {
10907
10935
  await run(async () => {
10908
10936
  await requireExperimental();
10909
- const { runPull } = await import("./sync-pull-NCOPVSGZ.js");
10937
+ const { runPull } = await import("./sync-pull-QXN3V4MI.js");
10910
10938
  const { terminalPrompter } = await import("./prompter-LSICEYSQ.js");
10911
10939
  return runPull(options, {
10912
10940
  interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
@@ -10975,7 +11003,7 @@ var agentsCommand = new Command55("agents").description("Browse the worker direc
10975
11003
  "--sort <order>",
10976
11004
  "Sort order: reputation (top rated), tasks or hires (most hired: completed reserved, quote and request hires)",
10977
11005
  "reputation"
10978
- ).option("--skill <tag>", "Filter by legacy registration tag").option("--specialty <specialty>", "Filter listed workers by specialty, as a label or slug").option(
11006
+ ).option("--specialty <specialty>", "Filter listed workers by specialty, as a label or slug").option("--skill <tag>", "Deprecated alias of --specialty").option(
10979
11007
  "--capability <slug>",
10980
11008
  "Filter listed agents by capability slug (see `taskmarket capabilities`)"
10981
11009
  ).option("--role <role>", "Filter listed workers by role: worker or evaluator").option("--search <query>", "Search by agentId or wallet address").option("--limit <n>", "Maximum results to return", "20").option("--min-rating <n>", `Only workers rated at least this: ${MIN_RATINGS.join(", ")}`).option(
@@ -11016,8 +11044,8 @@ var agentsCommand = new Command55("agents").description("Browse the worker direc
11016
11044
  const params = new URLSearchParams();
11017
11045
  if (verifiedBy.value) params.set("verifiedBy", verifiedBy.value);
11018
11046
  if (opts.sort) params.set("sort", opts.sort);
11019
- if (opts.skill) params.set("skill", opts.skill);
11020
- if (opts.specialty) params.set("specialty", opts.specialty);
11047
+ const specialty = opts.specialty ?? opts.skill;
11048
+ if (specialty) params.set("specialty", specialty);
11021
11049
  if (opts.capability) params.set("capability", opts.capability);
11022
11050
  if (role) params.set("role", role);
11023
11051
  if (opts.search) params.set("search", opts.search);
@@ -11027,15 +11055,19 @@ var agentsCommand = new Command55("agents").description("Browse the worker direc
11027
11055
  if (kind) params.set("actorType", kind);
11028
11056
  const availability = opts.availability ?? DEFAULT_AVAILABILITY;
11029
11057
  if (availability !== "any") params.set("availability", availability);
11030
- const { chainId } = selectedNetwork();
11031
- params.set("chainId", String(chainId));
11058
+ const chainId = selectedNetworkOrUndefined()?.chainId;
11059
+ if (chainId !== void 0) params.set("chainId", String(chainId));
11032
11060
  const result = await apiGet(`/api/agents/leaderboard?${params.toString()}`);
11033
11061
  printResult(
11034
11062
  Array.isArray(result) ? result.map((entry) => ({
11035
11063
  ...entry,
11036
11064
  availability: entry.availability ?? null,
11037
- earningsChainId: chainId,
11038
- earningsToken: paymentTokenSymbol(chainId)
11065
+ ...chainId === void 0 ? {
11066
+ chains: Array.isArray(entry.chains) ? entry.chains.map((item) => ({
11067
+ ...item,
11068
+ earningsToken: paymentTokenSymbol(Number(item.chainId))
11069
+ })) : []
11070
+ } : { earningsChainId: chainId, earningsToken: paymentTokenSymbol(chainId) }
11039
11071
  })) : result
11040
11072
  );
11041
11073
  }
@@ -38,7 +38,7 @@ import {
38
38
  sha256Hex,
39
39
  specHash,
40
40
  taskStage
41
- } from "./chunk-OFZJJRJG.js";
41
+ } from "./chunk-LLDTXUHC.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-YRAEI25P.js";
50
+ } from "./chunk-A4M344DT.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-JU7EXT2K.js";
62
+ } from "./chunk-R7FABEN6.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-UTVPFCAV.js";
81
+ } from "./chunk-VABTHZFQ.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-MWLJU6TX.js";
91
+ } from "./chunk-6QD7LE3R.js";
92
92
  import {
93
93
  signReadAuth
94
- } from "./chunk-QUYCPKAV.js";
94
+ } from "./chunk-LRCJQWAT.js";
95
95
  import {
96
96
  taskAccessGrantHeaders
97
- } from "./chunk-GL3YWOBS.js";
97
+ } from "./chunk-XUBYHJMJ.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-MOKEWGED.js";
117
+ } from "./chunk-BXZHXNZZ.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-JG7RZOLG.js";
131
+ } from "./chunk-6QUNPM4S.js";
132
132
  import {
133
133
  apiUrl,
134
134
  keystoreExists,
135
135
  loadKeystore,
136
136
  selectedNetwork
137
- } from "./chunk-6XSCWMWF.js";
137
+ } from "./chunk-44AGKANB.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-5UCQ4CTG.js";
146
+ } from "./chunk-FQIK5KSR.js";
147
147
  import {
148
148
  AgentLaunchError
149
149
  } from "./chunk-YM4S6IE4.js";