@lucid-agents/taskmarket 1.31.0 → 1.32.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-72EG7RDG.js → api-E5UZ2QWE.js} +2 -2
  3. package/dist/{channels-WVJNWZHJ.js → channels-347BLVQI.js} +4 -4
  4. package/dist/{chunk-GO4PAHB3.js → chunk-34AFGDDW.js} +1 -1
  5. package/dist/{chunk-LEQ4JRAS.js → chunk-6WOUTOR4.js} +126 -13
  6. package/dist/{chunk-4E4WY6AJ.js → chunk-EDZKOEOY.js} +3 -3
  7. package/dist/{chunk-7KGKGZLK.js → chunk-FJ4EPHIN.js} +1 -1
  8. package/dist/{chunk-AUQJBVNF.js → chunk-NFSTIKPI.js} +2 -2
  9. package/dist/{chunk-PCSHRHUX.js → chunk-OUUCDNIE.js} +3 -3
  10. package/dist/{chunk-3YNTCMLY.js → chunk-OUV2RQSB.js} +1 -1
  11. package/dist/{chunk-VLXBDE22.js → chunk-QVP3VXGD.js} +1 -1
  12. package/dist/{chunk-JI63EPPO.js → chunk-R6QEAGHK.js} +1 -1
  13. package/dist/{chunk-VIKSHMQ7.js → chunk-TSMFV7XG.js} +3 -3
  14. package/dist/{chunk-PSFCFRC4.js → chunk-XFCZYEKA.js} +5 -5
  15. package/dist/{chunk-SJZEU7FN.js → chunk-YSOV3WQK.js} +15 -9
  16. package/dist/{doctor-JP77AWIU.js → doctor-BCC7R7AE.js} +8 -8
  17. package/dist/index.js +141 -82
  18. package/dist/{launch-DFIZTKMO.js → launch-BGOVTUPV.js} +11 -11
  19. package/dist/pi-extensions/xgate.cjs +126 -13
  20. package/dist/{read-auth-U6CQ2ATH.js → read-auth-IBJWXGFC.js} +3 -3
  21. package/dist/{reconcile-TD7RMO4A.js → reconcile-CSMSM4OC.js} +4 -4
  22. package/dist/{status-P3NIGGYJ.js → status-O6GBRFDB.js} +8 -8
  23. package/dist/{sync-pull-TH3U6DPI.js → sync-pull-765XDDFN.js} +4 -4
  24. package/dist/{task-access-grants-4GVGJEKT.js → task-access-grants-H3RJAJ32.js} +2 -2
  25. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  listWorkerSubmissions,
14
14
  submitTaskFiles,
15
15
  taskRequirementsOf
16
- } from "./chunk-SJZEU7FN.js";
16
+ } from "./chunk-YSOV3WQK.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-4E4WY6AJ.js";
38
+ } from "./chunk-EDZKOEOY.js";
39
39
  import {
40
40
  signReadAuth
41
- } from "./chunk-AUQJBVNF.js";
41
+ } from "./chunk-NFSTIKPI.js";
42
42
  import {
43
43
  saveTaskAccessGrant,
44
44
  taskAccessGrantHeaders
45
- } from "./chunk-VLXBDE22.js";
45
+ } from "./chunk-QVP3VXGD.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-3YNTCMLY.js";
63
+ } from "./chunk-OUV2RQSB.js";
64
64
  import {
65
65
  ALL_NETWORKS,
66
66
  ApiError,
@@ -121,7 +121,7 @@ import {
121
121
  withErrorContext,
122
122
  withIdempotentWrite,
123
123
  withTapSignature
124
- } from "./chunk-GO4PAHB3.js";
124
+ } from "./chunk-34AFGDDW.js";
125
125
  import {
126
126
  AGENT_AVATAR_MAX_BYTES,
127
127
  AGENT_HIRES_ROLES,
@@ -336,7 +336,7 @@ import {
336
336
  vaultCallGasLimit7702,
337
337
  verifierProviderId,
338
338
  verifiersUnsupportedOnChain
339
- } from "./chunk-LEQ4JRAS.js";
339
+ } from "./chunk-6WOUTOR4.js";
340
340
  import "./chunk-S7SJMJ2I.js";
341
341
 
342
342
  // src/index.ts
@@ -8248,30 +8248,43 @@ function snapshotPath(windowDays, maxNodes) {
8248
8248
  `/api/ecosystem/snapshot?windowDays=${windowDays}&maxNodes=${maxNodes}&maxLinks=1`
8249
8249
  );
8250
8250
  }
8251
- var eventsCommand = new Command7("events").description("Recent public market events on the selected --network (the web Explorer feed)").option("--type <type>", `Keep one event type: ${EcosystemEventTypeEnum.options.join(", ")}`).option("--limit <n>", "Events to read (1-200, default 100)").option("--cursor <cursor>", "cursor from a previous page: return only newer events").option(
8251
+ var eventsCommand = new Command7("events").description("Public market events on the selected --network (the web Explorer feed)").option(
8252
+ "--type <types>",
8253
+ `Only these event types, comma separated: ${EcosystemEventTypeEnum.options.join(", ")}`
8254
+ ).option("--limit <n>", "Events to read (1-200, default 100)").option("--cursor <cursor>", "cursor from a previous page: return only newer events").option("--newest", "Read newest first and page backwards with nextBefore").option(
8255
+ "--before <cursor>",
8256
+ "nextBefore from a previous --newest page: return the next older events, newest first"
8257
+ ).option(
8252
8258
  "--search <text>",
8253
- "Keep events whose task id, title or requester/worker address contains the text (filters the page read)"
8254
- ).action(async (opts) => {
8259
+ "A full wallet address, a full task id, or the start of a task title (case-insensitive)"
8260
+ ).option("--address <address>", "Only events this wallet is part of (requester, worker, joined)").option("--task <id>", "Only events about this task").action(async (opts) => {
8255
8261
  try {
8256
- const type = opts.type === void 0 ? void 0 : parseInput(EcosystemEventTypeEnum, opts.type);
8262
+ const newest = Boolean(opts.newest || opts.before);
8263
+ if (newest && opts.cursor)
8264
+ throw new Error("--cursor cannot be combined with --newest or --before");
8257
8265
  const input = parseInput(EcosystemEventsInputSchema, {
8258
8266
  limit: optionalInt(opts.limit),
8259
- since: opts.cursor
8267
+ since: opts.cursor,
8268
+ type: opts.type?.trim() || void 0,
8269
+ q: opts.search?.trim().slice(0, 80) || void 0,
8270
+ address: opts.address,
8271
+ taskId: opts.task,
8272
+ order: newest ? "newest" : void 0,
8273
+ before: opts.before
8260
8274
  });
8261
8275
  const params = new URLSearchParams({ limit: String(input.limit) });
8262
- if (input.since) params.set("since", input.since);
8276
+ for (const key of ["since", "type", "q", "address", "taskId", "order", "before"]) {
8277
+ if (input[key]) params.set(key, input[key]);
8278
+ }
8263
8279
  const page = await apiGet(
8264
8280
  withChainId(`/api/ecosystem/events?${params.toString()}`)
8265
8281
  );
8266
- const needle = opts.search?.trim().toLowerCase().slice(0, 80);
8267
- const matches = (item) => (!type || item.type === type) && (!needle || [item.taskId, item.taskTitle, item.requester, item.worker].some(
8268
- (field) => (field ?? "").toLowerCase().includes(needle)
8269
- ));
8270
8282
  printResult({
8271
8283
  chainId: selectedNetwork().chainId,
8272
- items: type || needle ? page.items.filter(matches) : page.items,
8284
+ items: page.items,
8273
8285
  cursor: page.cursor,
8274
- hasMore: page.hasMore
8286
+ hasMore: page.hasMore,
8287
+ ...page.nextBefore !== void 0 ? { nextBefore: page.nextBefore } : {}
8275
8288
  });
8276
8289
  } catch (err) {
8277
8290
  renderFailure(err);
@@ -8300,17 +8313,18 @@ var addressCommand2 = new Command7("address").description("One wallet on the sel
8300
8313
  const wanted = address3.toLowerCase();
8301
8314
  const [snapshot, page] = await Promise.all([
8302
8315
  apiGet(snapshotPath(windowDays, NODE_LIMIT)),
8303
- apiGet(withChainId("/api/ecosystem/events?limit=200"))
8316
+ apiGet(
8317
+ withChainId(`/api/ecosystem/events?limit=20&order=newest&address=${wanted}`)
8318
+ )
8304
8319
  ]);
8305
8320
  const node = snapshot.nodes.find((n) => n.address.toLowerCase() === wanted) ?? null;
8306
- const events = page.items.filter((e5) => e5.requester?.toLowerCase() === wanted || e5.worker?.toLowerCase() === wanted).reverse().slice(0, 20);
8307
8321
  printResult({
8308
8322
  chainId: selectedNetwork().chainId,
8309
8323
  address: wanted,
8310
8324
  windowDays,
8311
8325
  name: node?.agentId ? getAgentName(node.agentId) : null,
8312
8326
  node,
8313
- events
8327
+ events: page.items
8314
8328
  });
8315
8329
  } catch (err) {
8316
8330
  renderFailure(err);
@@ -10746,7 +10760,10 @@ var listCmd = new Command12("list").alias("search").description("List available
10746
10760
  ).option(
10747
10761
  "--verified-by <verifier>",
10748
10762
  "Only tasks that require this verifier: tap:identity:verified or tap:identity:known"
10749
- ).option("--limit <n>", "Maximum results to return", "20").option("--cursor <cursor>", "Cursor from previous page (nextCursor in JSON output)").action(
10763
+ ).option("--limit <n>", "Maximum results to return", "20").option(
10764
+ "--cursor <cursor>",
10765
+ "Cursor from previous page (nextCursor in JSON output); pass it with the same --sort and filters"
10766
+ ).action(
10750
10767
  async (opts) => {
10751
10768
  const identity = parseRequirementFilter(opts.identity, IDENTITY_FILTER, "--identity");
10752
10769
  if ("error" in identity) return void printError(identity.error);
@@ -11257,7 +11274,7 @@ var listCmd2 = new Command19("list").description(
11257
11274
  "List hires: offers made to you (--role worker, the default) or hires you made, including quotes and requests (--role requester). Signed, so your private hires are included."
11258
11275
  ).option("--role <role>", `Whose hires: ${ROLES.join(" or ")}`, "worker").option("--state <state>", `Filter by hire state: ${HireState.options.join(", ")}`).option(
11259
11276
  "--tab <tab>",
11260
- `Only one Hires dashboard tab: ${HIRE_TABS.join(", ")} (filters the page fetched; each hire carries its tab)`
11277
+ `Only one Hires dashboard tab: ${HIRE_TABS.join(", ")} (filtered on the server, so an older hire is found whatever the page size; the output then carries tabCounts for every tab)`
11261
11278
  ).option("--service <id>", "Only hires made for this listed service").option("--address <address>", "List for this wallet instead of your own").option("--limit <n>", "Maximum results to return", "20").option("--cursor <cursor>", "Cursor from previous page (nextCursor in JSON output)").action(
11262
11279
  async (opts) => {
11263
11280
  try {
@@ -11278,13 +11295,15 @@ var listCmd2 = new Command19("list").description(
11278
11295
  // Offers to a worker are reserved hires; a requester's hires include quotes and requests.
11279
11296
  ...opts.role === "worker" ? { hireKind: HireKind.enum.reserved, reservedWorker: address3 } : { requester: address3 },
11280
11297
  hireState: opts.state,
11298
+ hireTab: tab,
11281
11299
  hireServiceId: opts.service,
11282
11300
  limit: opts.limit,
11283
11301
  cursor: opts.cursor
11284
11302
  });
11285
- const hires = withChainNames(result.tasks).map((task) => ({ ...task, tab: hireTab(task) })).filter((task) => tab === void 0 || task.tab === tab);
11303
+ const hires = withChainNames(result.tasks).map((task) => ({ ...task, tab: hireTab(task) }));
11286
11304
  printResult({
11287
11305
  hires,
11306
+ ...result.hireTabCounts ? { tabCounts: result.hireTabCounts } : {},
11288
11307
  hasMore: result.hasMore,
11289
11308
  nextCursor: result.nextCursor
11290
11309
  });
@@ -12736,7 +12755,7 @@ async function runAgentCommand(options) {
12736
12755
  try {
12737
12756
  const { assertAgentCompatibility } = await import("./compatibility-636WJOEX.js");
12738
12757
  const pi = assertAgentCompatibility();
12739
- const { runAgent } = await import("./launch-DFIZTKMO.js");
12758
+ const { runAgent } = await import("./launch-BGOVTUPV.js");
12740
12759
  result = await runAgent({
12741
12760
  model: options.model,
12742
12761
  pi,
@@ -13170,13 +13189,13 @@ function agentManagementCommands() {
13170
13189
  const status = new Command57("status").description(
13171
13190
  "Show the agent channels (locked, charged, refundable), purchases with an unknown outcome, the sandbox and compute credit. Reads only."
13172
13191
  ).action(async () => {
13173
- const { collectAgentStatus } = await import("./status-P3NIGGYJ.js");
13192
+ const { collectAgentStatus } = await import("./status-O6GBRFDB.js");
13174
13193
  await run(() => collectAgentStatus());
13175
13194
  });
13176
13195
  const doctor = new Command57("doctor").description(
13177
13196
  "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."
13178
13197
  ).action(async () => {
13179
- const { runDoctor } = await import("./doctor-JP77AWIU.js");
13198
+ const { runDoctor } = await import("./doctor-BCC7R7AE.js");
13180
13199
  const report = await run(() => runDoctor());
13181
13200
  if (report && !report.ok) process.exitCode = 1;
13182
13201
  });
@@ -13187,7 +13206,7 @@ function agentManagementCommands() {
13187
13206
  "Reconcile the open purchases of this channel, as status lists it; also reaches retired channels"
13188
13207
  ).action(
13189
13208
  async (invocationId, options) => {
13190
- const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-TD7RMO4A.js");
13209
+ const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-CSMSM4OC.js");
13191
13210
  const choice = { rail: options.rail, channel: options.channel };
13192
13211
  if (invocationId !== void 0) {
13193
13212
  await run(() => reconcileInvocation(invocationId, { choice }));
@@ -13219,7 +13238,7 @@ function agentManagementCommands() {
13219
13238
  `Not a USDC amount: ${options.amount} (digits, at most 6 decimals)`
13220
13239
  );
13221
13240
  }
13222
- const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-WVJNWZHJ.js");
13241
+ const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-347BLVQI.js");
13223
13242
  const { rails } = await openAgentChannels();
13224
13243
  const result = await requestTopUp(selectRail(rails, options.rail), amount);
13225
13244
  return {
@@ -13239,8 +13258,8 @@ function agentManagementCommands() {
13239
13258
  await run(async () => {
13240
13259
  await requireExperimental();
13241
13260
  const { AGENT_VIEW_VERSION } = await import("./budget-view-J6L7X6EY.js");
13242
- const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-WVJNWZHJ.js");
13243
- const { reconcileLeasedPurchase } = await import("./reconcile-TD7RMO4A.js");
13261
+ const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-347BLVQI.js");
13262
+ const { reconcileLeasedPurchase } = await import("./reconcile-CSMSM4OC.js");
13244
13263
  const opened = await openAgentChannels();
13245
13264
  const { rail, retired } = selectChannel(opened, options);
13246
13265
  const result = await closeChannel(
@@ -13294,7 +13313,7 @@ function agentManagementCommands() {
13294
13313
  async (options) => {
13295
13314
  await run(async () => {
13296
13315
  await requireExperimental();
13297
- const { runPull } = await import("./sync-pull-TH3U6DPI.js");
13316
+ const { runPull } = await import("./sync-pull-765XDDFN.js");
13298
13317
  const { terminalPrompter } = await import("./prompter-LSICEYSQ.js");
13299
13318
  return runPull(options, {
13300
13319
  interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
@@ -13681,27 +13700,8 @@ function buildNeedsYou(sources, limit = DASHBOARD_LIST_LIMIT) {
13681
13700
  }))
13682
13701
  };
13683
13702
  }
13684
- var IN_ESCROW = /* @__PURE__ */ new Set([
13685
- "open",
13686
- "claimed",
13687
- "worker_selected",
13688
- "pending_approval",
13689
- "review",
13690
- "appealing",
13691
- "disputed"
13692
- ]);
13693
- function escrowHeld(posted) {
13694
- let total = 0n;
13695
- let openTasks = 0;
13696
- for (const task of posted) {
13697
- if (!IN_ESCROW.has(task.status)) continue;
13698
- openTasks += 1;
13699
- try {
13700
- total += BigInt(task.reward);
13701
- } catch {
13702
- }
13703
- }
13704
- return { baseUnits: total.toString(), openTasks };
13703
+ function escrowHeld(escrow) {
13704
+ return { baseUnits: escrow?.units ?? "0", openTasks: escrow?.count ?? 0 };
13705
13705
  }
13706
13706
  function bucket(status) {
13707
13707
  switch (status) {
@@ -13844,7 +13844,10 @@ var dashboardCommand = new Command60("dashboard").description(
13844
13844
  })
13845
13845
  ),
13846
13846
  settle(
13847
- () => apiGet(`/api/agents/inbox?${new URLSearchParams({ address: address3 })}`, { headers })
13847
+ () => apiGet(
13848
+ `/api/agents/inbox?${new URLSearchParams({ address: address3, sort: "attention", limit: String(DASHBOARD_TASK_LIMIT) })}`,
13849
+ { headers }
13850
+ )
13848
13851
  ),
13849
13852
  settle(
13850
13853
  () => apiGet(withChainId(`/api/workflows?${owner}`))
@@ -13855,7 +13858,7 @@ var dashboardCommand = new Command60("dashboard").description(
13855
13858
  settle(
13856
13859
  () => apiGet(
13857
13860
  withChainId(
13858
- `/api/projects?${new URLSearchParams({ address: address3, role: "owner", limit: String(PROJECTS_READ_LIMIT) })}`
13861
+ `/api/projects?${new URLSearchParams({ address: address3, role: "owner", status: "open", limit: String(PROJECTS_READ_LIMIT) })}`
13859
13862
  )
13860
13863
  )
13861
13864
  ),
@@ -13902,7 +13905,7 @@ var dashboardCommand = new Command60("dashboard").description(
13902
13905
  usdc: balance.value.balanceUsdc,
13903
13906
  tokenSymbol: balance.value.tokenSymbol ?? null
13904
13907
  } : null,
13905
- escrow: inbox.value ? escrowHeld(posted) : null,
13908
+ escrow: inbox.value ? escrowHeld(inbox.value.escrow) : null,
13906
13909
  swarmBudget: null
13907
13910
  },
13908
13911
  posted: inbox.value ? buildPosted(posted) : [],
@@ -13936,11 +13939,26 @@ var inboxCommand = new Command61("inbox").description(
13936
13939
  ).option(
13937
13940
  "--cursor <token>",
13938
13941
  "Continue the action queue with its nextCursor; task/bid lists are unchanged"
13942
+ ).option(
13943
+ "--tasks-sort <order>",
13944
+ "Order of the task lists (newest or attention; default newest). attention picks, across ALL your tasks, disputed or awaiting-review first, then open or running (workers: due soonest), then paid"
13945
+ ).option(
13946
+ "--tasks-limit <n>",
13947
+ "Rows in each task list (1-50; default 50); the escrow total always covers every task you posted"
13939
13948
  ).option("--actions-only", "Read only the bounded action queue, without task/bid lists").option(
13940
13949
  "--stream <name>",
13941
13950
  "Read one stream instead: workflows (approval gates, failed runs and paused schedules, newest first)"
13942
13951
  ).action(
13943
13952
  async (opts) => {
13953
+ if (opts.tasksSort !== void 0 && !["newest", "attention"].includes(opts.tasksSort)) {
13954
+ printError("Unknown --tasks-sort. Use: newest or attention");
13955
+ return;
13956
+ }
13957
+ const tasksLimit = opts.tasksLimit === void 0 ? void 0 : Number(opts.tasksLimit);
13958
+ if (tasksLimit !== void 0 && !(Number.isInteger(tasksLimit) && tasksLimit >= 1 && tasksLimit <= 50)) {
13959
+ printError("--tasks-limit must be a whole number from 1 to 50");
13960
+ return;
13961
+ }
13944
13962
  if (opts.stream !== void 0 && opts.stream !== "workflows") {
13945
13963
  printError("Unknown stream. The only stream is: workflows");
13946
13964
  return;
@@ -13986,6 +14004,8 @@ var inboxCommand = new Command61("inbox").description(
13986
14004
  const address3 = auth.walletAddress;
13987
14005
  const hasReadAuth = Object.keys(auth.headers).length > 0;
13988
14006
  const inboxParams = new URLSearchParams({ address: address3 });
14007
+ if (opts.tasksSort) inboxParams.set("sort", opts.tasksSort);
14008
+ if (tasksLimit !== void 0) inboxParams.set("limit", String(tasksLimit));
13989
14009
  const actionParams = new URLSearchParams({ address: address3, limit: String(page.limit) });
13990
14010
  if (page.cursor) actionParams.set("cursor", page.cursor);
13991
14011
  if (opts.actionsOnly) {
@@ -18171,6 +18191,18 @@ import { Command as Command99 } from "commander";
18171
18191
 
18172
18192
  // src/commands/bug/browse.ts
18173
18193
  import { Command as Command91 } from "commander";
18194
+
18195
+ // src/commands/bug/known-problem.ts
18196
+ async function fetchKnownProblem() {
18197
+ try {
18198
+ const { notice } = await apiGet("/api/bug-tracker-notice");
18199
+ return notice ?? null;
18200
+ } catch {
18201
+ return null;
18202
+ }
18203
+ }
18204
+
18205
+ // src/commands/bug/browse.ts
18174
18206
  var browseCommand = new Command91("browse").description(
18175
18207
  "Browse public bug reports, to check whether a bug is already known; no wallet needed"
18176
18208
  ).option("--query <text>", "Only reports whose title or description contains this text").option("--status <status>", `Only reports with this status: ${BUG_REPORT_STATUSES.join(", ")}`).option("--sort <order>", `Order: ${PUBLIC_BUG_REPORT_SORTS.join(", ")}`, "newest").option("--limit <n>", "Maximum reports to return (1-100)", "50").option("--offset <n>", "Skip this many reports, for paging", "0").action(
@@ -18206,7 +18238,11 @@ var browseCommand = new Command91("browse").description(
18206
18238
  if (opts.status) params.set("status", opts.status);
18207
18239
  if (query4) params.set("query", query4);
18208
18240
  try {
18209
- printResult(await apiGet(`/api/bug-tracker?${params.toString()}`));
18241
+ const [result, knownProblem] = await Promise.all([
18242
+ apiGet(`/api/bug-tracker?${params.toString()}`),
18243
+ fetchKnownProblem()
18244
+ ]);
18245
+ printResult({ ...result, knownProblem });
18210
18246
  } catch (error) {
18211
18247
  return renderFailure(error);
18212
18248
  }
@@ -18333,9 +18369,13 @@ var listCommand2 = new Command93("list").description("List the bug reports you s
18333
18369
  const params = new URLSearchParams({ limit: String(limit) });
18334
18370
  if (opts.status) params.set("status", opts.status);
18335
18371
  try {
18336
- printResult(
18337
- await apiGet(`/api/bug-reports/mine?${params.toString()}`, { headers: auth.headers })
18338
- );
18372
+ const [result, knownProblem] = await Promise.all([
18373
+ apiGet(`/api/bug-reports/mine?${params.toString()}`, {
18374
+ headers: auth.headers
18375
+ }),
18376
+ fetchKnownProblem()
18377
+ ]);
18378
+ printResult({ ...result, knownProblem });
18339
18379
  } catch (error) {
18340
18380
  return renderFailure(error);
18341
18381
  }
@@ -18515,9 +18555,11 @@ var submitCommand = new Command97("submit").description(
18515
18555
  { ...parsed.data, ...proof },
18516
18556
  { headers: auth.headers }
18517
18557
  );
18558
+ const knownProblem = await fetchKnownProblem();
18518
18559
  printResult(
18519
18560
  {
18520
18561
  ...data,
18562
+ knownProblem,
18521
18563
  visibility: parsed.data.visibility,
18522
18564
  ...parsed.data.visibility === "public" ? { notice: PUBLIC_NOTICE } : {}
18523
18565
  },
@@ -18712,7 +18754,7 @@ var removeCommand = new Command101("remove").description("Remove a bookmark; an
18712
18754
  return renderFailure(error);
18713
18755
  }
18714
18756
  });
18715
- var listCommand4 = new Command101("list").description("List your bookmarks, newest first; agent entries carry their chainId").option("--type <type>", `Only one kind: ${ENTITY_TYPES.join(", ")}`).option("--collection <id>", "Only bookmarks in this collection").option("--limit <n>", "Maximum bookmarks to return (1-100)", "50").action(async (opts) => {
18757
+ var listCommand4 = new Command101("list").description("List your bookmarks, newest first; agent entries carry their chainId").option("--type <type>", `Only one kind: ${ENTITY_TYPES.join(", ")}`).option("--collection <id>", "Only bookmarks in this collection").option("--limit <n>", "Maximum bookmarks to return (1-100)", "50").option("--cursor <cursor>", "Cursor from previous page (nextCursor in JSON output)").action(async (opts) => {
18716
18758
  const entityType = opts.type === void 0 ? void 0 : parseEntityType(opts.type, "--type");
18717
18759
  if (entityType === null) return;
18718
18760
  const limit = Number(opts.limit);
@@ -18725,6 +18767,7 @@ var listCommand4 = new Command101("list").description("List your bookmarks, newe
18725
18767
  const params = new URLSearchParams({ limit: String(limit) });
18726
18768
  if (entityType) params.set("entityType", entityType);
18727
18769
  if (opts.collection) params.set("collectionId", opts.collection);
18770
+ if (opts.cursor) params.set("cursor", opts.cursor);
18728
18771
  try {
18729
18772
  printResult(await apiGet(`/api/bookmarks?${params.toString()}`, { headers: auth.headers }));
18730
18773
  } catch (error) {
@@ -26058,6 +26101,9 @@ var projectListCommand = new Command138("list").description(
26058
26101
  ).option(
26059
26102
  "--funding",
26060
26103
  "List every project open for backing now (not closed, end date ahead), newest first, instead of a wallet's; --address and --role are not used"
26104
+ ).option(
26105
+ "--open",
26106
+ "Only the wallet's projects that are still open (not closed, end date ahead); applied before --limit"
26061
26107
  ).option("--address <address>", "The wallet to list (default: your keystore wallet)").option("--role <role>", "owner, operator, backer or any (any is owner and operator)", "any").option("--limit <count>", "Projects per page (1-100, default 50)").option("--before <projectId>", "The next page: projects with a smaller id than this").action(
26062
26108
  async (opts) => {
26063
26109
  if (opts.funding && opts.address !== void 0) {
@@ -26093,6 +26139,7 @@ var projectListCommand = new Command138("list").description(
26093
26139
  }
26094
26140
  if (!ADDRESS.test(address3)) return void printError("Invalid Ethereum address for --address");
26095
26141
  const params = new URLSearchParams({ address: address3, role: opts.role });
26142
+ if (opts.open) params.set("status", "open");
26096
26143
  if (opts.limit !== void 0) params.set("limit", opts.limit.trim());
26097
26144
  if (before !== void 0) params.set("before", String(before));
26098
26145
  printResult(await apiGet(withChainId(`/api/projects?${params.toString()}`)));
@@ -26569,28 +26616,40 @@ var listCommand10 = new Command142("list").description(
26569
26616
  ).option("--limit <n>", "Maximum unlisted observed hooks to return (1-100)", "50").option("--observed", "Return the raw onchain observation index instead of the registry view").option(
26570
26617
  "--cursor <cursor>",
26571
26618
  "The observation index page after this one: pass the previous page's nextCursor (implies --observed)"
26572
- ).action(async (opts) => {
26573
- try {
26574
- const input = parseInput(HookIndexInputSchema, {
26575
- limit: optionalInt(opts.limit),
26576
- ...opts.cursor !== void 0 ? { cursor: opts.cursor } : {}
26577
- });
26578
- if (opts.observed || input.cursor !== void 0) {
26579
- const params = new URLSearchParams({ limit: String(input.limit) });
26580
- if (input.cursor !== void 0) params.set("cursor", input.cursor);
26581
- printResult(await apiGet(withChainId(`/api/hooks?${params.toString()}`)));
26582
- return;
26619
+ ).option(
26620
+ "--q <hex>",
26621
+ "Only hooks whose address contains these hex digits, searched over every observed hook (implies --observed)"
26622
+ ).option(
26623
+ "--mode <mode>",
26624
+ "Only hooks used by tasks of this mode: bounty, claim, pitch, benchmark or auction (implies --observed)"
26625
+ ).action(
26626
+ async (opts) => {
26627
+ try {
26628
+ const input = parseInput(HookIndexInputSchema, {
26629
+ limit: optionalInt(opts.limit),
26630
+ ...opts.cursor !== void 0 ? { cursor: opts.cursor } : {},
26631
+ ...opts.q !== void 0 ? { q: opts.q } : {},
26632
+ ...opts.mode !== void 0 ? { mode: opts.mode } : {}
26633
+ });
26634
+ if (opts.observed || input.cursor !== void 0 || input.q !== void 0 || input.mode !== void 0) {
26635
+ const params = new URLSearchParams({ limit: String(input.limit) });
26636
+ if (input.cursor !== void 0) params.set("cursor", input.cursor);
26637
+ if (input.q !== void 0) params.set("q", input.q);
26638
+ if (input.mode !== void 0) params.set("mode", input.mode);
26639
+ printResult(await apiGet(withChainId(`/api/hooks?${params.toString()}`)));
26640
+ return;
26641
+ }
26642
+ const registry = await fetchHookRegistry();
26643
+ printResult({
26644
+ ...registry,
26645
+ listed: registry.listed.map(withV2Declarations),
26646
+ unlisted: registry.unlisted.slice(0, input.limit).map(withV2Declarations)
26647
+ });
26648
+ } catch (err) {
26649
+ renderFailure(err);
26583
26650
  }
26584
- const registry = await fetchHookRegistry();
26585
- printResult({
26586
- ...registry,
26587
- listed: registry.listed.map(withV2Declarations),
26588
- unlisted: registry.unlisted.slice(0, input.limit).map(withV2Declarations)
26589
- });
26590
- } catch (err) {
26591
- renderFailure(err);
26592
26651
  }
26593
- });
26652
+ );
26594
26653
  var showCommand7 = new Command142("show").description(
26595
26654
  "Show one hook on the selected --network: its registry listing, or its onchain observation marked unlisted"
26596
26655
  ).argument("<address>", "Hook contract address").action(async (address3) => {
@@ -38,7 +38,7 @@ import {
38
38
  sha256Hex,
39
39
  specHash,
40
40
  taskStage
41
- } from "./chunk-PCSHRHUX.js";
41
+ } from "./chunk-OUUCDNIE.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-7KGKGZLK.js";
50
+ } from "./chunk-FJ4EPHIN.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-JI63EPPO.js";
62
+ } from "./chunk-R6QEAGHK.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-SJZEU7FN.js";
81
+ } from "./chunk-YSOV3WQK.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-4E4WY6AJ.js";
91
+ } from "./chunk-EDZKOEOY.js";
92
92
  import {
93
93
  signReadAuth
94
- } from "./chunk-AUQJBVNF.js";
94
+ } from "./chunk-NFSTIKPI.js";
95
95
  import {
96
96
  taskAccessGrantHeaders
97
- } from "./chunk-VLXBDE22.js";
97
+ } from "./chunk-QVP3VXGD.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-VIKSHMQ7.js";
121
+ } from "./chunk-TSMFV7XG.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-3YNTCMLY.js";
135
+ } from "./chunk-OUV2RQSB.js";
136
136
  import {
137
137
  apiUrl,
138
138
  keystoreExists,
139
139
  loadKeystore,
140
140
  selectedNetwork
141
- } from "./chunk-GO4PAHB3.js";
141
+ } from "./chunk-34AFGDDW.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-LEQ4JRAS.js";
150
+ } from "./chunk-6WOUTOR4.js";
151
151
  import {
152
152
  AgentLaunchError
153
153
  } from "./chunk-YM4S6IE4.js";