@lucid-agents/taskmarket 1.32.0 → 1.32.1

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "taskmarket": "1.32.0",
2
+ "taskmarket": "1.32.1",
3
3
  "manifestVersion": 1,
4
4
  "pi": {
5
5
  "package": "@earendil-works/pi-coding-agent",
@@ -14,7 +14,7 @@ import {
14
14
  parseFailureBody,
15
15
  readFailureBody,
16
16
  withErrorContext
17
- } from "./chunk-34AFGDDW.js";
17
+ } from "./chunk-KC32V4AD.js";
18
18
  import "./chunk-6WOUTOR4.js";
19
19
  import "./chunk-S7SJMJ2I.js";
20
20
  export {
@@ -10,9 +10,9 @@ import {
10
10
  selectRail,
11
11
  uncertainPurchases,
12
12
  withdrawalHatch
13
- } from "./chunk-TSMFV7XG.js";
13
+ } from "./chunk-CWANOJKR.js";
14
14
  import "./chunk-OUV2RQSB.js";
15
- import "./chunk-34AFGDDW.js";
15
+ import "./chunk-KC32V4AD.js";
16
16
  import "./chunk-6WOUTOR4.js";
17
17
  import "./chunk-YM4S6IE4.js";
18
18
  import "./chunk-XJOB4NMV.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
  x402FeePost
4
- } from "./chunk-EDZKOEOY.js";
4
+ } from "./chunk-LT4DDAEZ.js";
5
5
  import {
6
6
  signReadAuth
7
- } from "./chunk-NFSTIKPI.js";
7
+ } from "./chunk-CH3OZ5EM.js";
8
8
  import {
9
9
  taskAccessGrantHeaders
10
10
  } from "./chunk-QVP3VXGD.js";
@@ -15,7 +15,7 @@ import {
15
15
  runWorkerAction,
16
16
  signMessage,
17
17
  taskRequiresTap
18
- } from "./chunk-34AFGDDW.js";
18
+ } from "./chunk-KC32V4AD.js";
19
19
  import {
20
20
  TaskAwardSchema,
21
21
  buildClaimMessage,
@@ -110,8 +110,8 @@ function putArtifactBytes(uploadUrl, data, mimeType, onProgress) {
110
110
  // src/lib/worker-attestation.ts
111
111
  var requirementCache = /* @__PURE__ */ new Map();
112
112
  async function defaultGet(path) {
113
- const { apiGet: apiGet2 } = await import("./api-E5UZ2QWE.js");
114
- const { signReadAuth: signReadAuth2 } = await import("./read-auth-IBJWXGFC.js");
113
+ const { apiGet: apiGet2 } = await import("./api-TEZH6URZ.js");
114
+ const { signReadAuth: signReadAuth2 } = await import("./read-auth-PQ7DGWZC.js");
115
115
  const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-H3RJAJ32.js");
116
116
  const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
117
117
  return apiGet2(path, {
@@ -2,7 +2,7 @@ import { createRequire as __tmCreateRequire } from 'node:module'; import { fileU
2
2
  import {
3
3
  createWalletAccountFromKeystore,
4
4
  loadKeystore
5
- } from "./chunk-34AFGDDW.js";
5
+ } from "./chunk-KC32V4AD.js";
6
6
  import {
7
7
  READ_AUTH_ADDRESS_HEADER,
8
8
  READ_AUTH_SIGNATURE_HEADER,
@@ -15,7 +15,7 @@ import {
15
15
  createWalletAccountFromKeystore,
16
16
  keystoreExists,
17
17
  loadKeystore
18
- } from "./chunk-34AFGDDW.js";
18
+ } from "./chunk-KC32V4AD.js";
19
19
  import {
20
20
  getTaskmarketHome,
21
21
  taskmarketChain
@@ -895,6 +895,7 @@ export {
895
895
  NETWORKS,
896
896
  coreNetworkNames,
897
897
  assertNetworkServesCommand,
898
+ networkNameForChain,
898
899
  taskmarketCommandFor,
899
900
  isNetworkName,
900
901
  getNetwork,
@@ -36,7 +36,7 @@ import {
36
36
  withChainId,
37
37
  withIdempotentWrite,
38
38
  withTapSignature
39
- } from "./chunk-34AFGDDW.js";
39
+ } from "./chunk-KC32V4AD.js";
40
40
  import {
41
41
  ComputeCreditBuyOutputSchema,
42
42
  ComputeCreditPricingSchema,
@@ -6,7 +6,7 @@ import {
6
6
  loadDeliverableRecord,
7
7
  readComputeView,
8
8
  taskStage
9
- } from "./chunk-OUUCDNIE.js";
9
+ } from "./chunk-SPG5J4RN.js";
10
10
  import {
11
11
  activeClaim,
12
12
  captureProblem,
@@ -21,11 +21,11 @@ import {
21
21
  openAgentChannels,
22
22
  uncertainPurchases,
23
23
  withdrawalHatch
24
- } from "./chunk-TSMFV7XG.js";
24
+ } from "./chunk-CWANOJKR.js";
25
25
  import {
26
26
  apiUrl,
27
27
  selectedNetwork
28
- } from "./chunk-34AFGDDW.js";
28
+ } from "./chunk-KC32V4AD.js";
29
29
  import {
30
30
  SandboxListOutputSchema
31
31
  } from "./chunk-6WOUTOR4.js";
@@ -16,7 +16,7 @@ import {
16
16
  loadComputeCreditConfig,
17
17
  onComputeBalanceObserved,
18
18
  readComputeCreditStatus
19
- } from "./chunk-EDZKOEOY.js";
19
+ } from "./chunk-LT4DDAEZ.js";
20
20
  import {
21
21
  getTaskmarketHome
22
22
  } from "./chunk-6WOUTOR4.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-XFCZYEKA.js";
5
- import "./chunk-OUUCDNIE.js";
4
+ } from "./chunk-PSN4GDLD.js";
5
+ import "./chunk-SPG5J4RN.js";
6
6
  import "./chunk-R6QEAGHK.js";
7
- import "./chunk-EDZKOEOY.js";
7
+ import "./chunk-LT4DDAEZ.js";
8
8
  import {
9
9
  AGENT_COMPATIBILITY,
10
10
  assertAgentCompatibility,
@@ -16,7 +16,7 @@ import {
16
16
  loadAgentPolicy,
17
17
  openAgentChannels,
18
18
  railChainIdHex
19
- } from "./chunk-TSMFV7XG.js";
19
+ } from "./chunk-CWANOJKR.js";
20
20
  import {
21
21
  getX402PolicyPath,
22
22
  loadX402Policy,
@@ -27,7 +27,7 @@ import {
27
27
  keystoreExists,
28
28
  loadKeystore,
29
29
  withChainId
30
- } from "./chunk-34AFGDDW.js";
30
+ } from "./chunk-KC32V4AD.js";
31
31
  import "./chunk-6WOUTOR4.js";
32
32
  import "./chunk-YM4S6IE4.js";
33
33
  import {
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  listWorkerSubmissions,
14
14
  submitTaskFiles,
15
15
  taskRequirementsOf
16
- } from "./chunk-YSOV3WQK.js";
16
+ } from "./chunk-62QDQXS3.js";
17
17
  import {
18
18
  ComputeCreditError,
19
19
  applyComputeCreditSetup,
@@ -35,10 +35,10 @@ import {
35
35
  refusedPaidWrite,
36
36
  releasePendingComputePurchase,
37
37
  resolvePendingComputePurchases
38
- } from "./chunk-EDZKOEOY.js";
38
+ } from "./chunk-LT4DDAEZ.js";
39
39
  import {
40
40
  signReadAuth
41
- } from "./chunk-NFSTIKPI.js";
41
+ } from "./chunk-CH3OZ5EM.js";
42
42
  import {
43
43
  saveTaskAccessGrant,
44
44
  taskAccessGrantHeaders
@@ -96,6 +96,7 @@ import {
96
96
  keystoreExists,
97
97
  liveNetworkNames,
98
98
  loadKeystore,
99
+ networkNameForChain,
99
100
  networkToStamp,
100
101
  parseTapPrivateKey,
101
102
  paymentProtocolOf,
@@ -121,7 +122,7 @@ import {
121
122
  withErrorContext,
122
123
  withIdempotentWrite,
123
124
  withTapSignature
124
- } from "./chunk-34AFGDDW.js";
125
+ } from "./chunk-KC32V4AD.js";
125
126
  import {
126
127
  AGENT_AVATAR_MAX_BYTES,
127
128
  AGENT_HIRES_ROLES,
@@ -8959,9 +8960,6 @@ var reviewCmd = createReviewCommand();
8959
8960
  import { Command as Command11 } from "commander";
8960
8961
  import { parseUnits } from "viem";
8961
8962
 
8962
- // src/lib/fee-ceiling.ts
8963
- var TASKMARKET_FEE_DEFAULT_CEILING = (BigInt(STANDARD_X402_ACTION_AMOUNT) * 2n).toString();
8964
-
8965
8963
  // src/lib/x402.ts
8966
8964
  var FACILITATOR_RETRIES = 2;
8967
8965
  var MAX_RETRY_AFTER_SECONDS = 60;
@@ -9002,7 +9000,7 @@ async function x402Post(path8, body, options) {
9002
9000
  const accept = selectTaskmarketFeeRequirement(requirements.accepts, {
9003
9001
  network: chain.caip2,
9004
9002
  asset: chain.payment.token,
9005
- maxAmount: options?.maxAmount ?? TASKMARKET_FEE_DEFAULT_CEILING
9003
+ maxAmount: options.maxAmount
9006
9004
  });
9007
9005
  const { header } = await signTaskmarketFeePayment({
9008
9006
  resource: requirements.resource,
@@ -9460,6 +9458,9 @@ async function settleRecording(data, idempotencyKey, options = {}) {
9460
9458
  };
9461
9459
  }
9462
9460
 
9461
+ // src/lib/fee-ceiling.ts
9462
+ var ACTION_FEE_MAX_AMOUNT = (BigInt(STANDARD_X402_ACTION_AMOUNT) * 2n).toString();
9463
+
9463
9464
  // src/commands/task/payout-gate.ts
9464
9465
  var TASK_ID_RE2 = /^0x[0-9a-fA-F]{64}$/;
9465
9466
  function assertTaskId(taskId) {
@@ -9549,7 +9550,8 @@ var linkGateCmd = new Command10("link-gate").description(
9549
9550
  }
9550
9551
  const { data: result, idempotencyKey } = await x402Post(
9551
9552
  linkGateRelayPath(id),
9552
- linkGateRelayBody(id, gatingTaskId)
9553
+ linkGateRelayBody(id, gatingTaskId),
9554
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
9553
9555
  );
9554
9556
  printResult(
9555
9557
  {
@@ -10650,7 +10652,7 @@ async function runCreateTask(input, extra = {}) {
10650
10652
  const { data: result, idempotencyKey } = await x402Post("/api/tasks", body, {
10651
10653
  // Creating a task pays the reward plus any evaluator stake, exactly; never more. A project
10652
10654
  // task pays only the action fee: its budget funds the reward and the stake.
10653
- maxAmount: extra.projectId !== void 0 ? TASKMARKET_FEE_DEFAULT_CEILING : (BigInt(String(body.reward)) + BigInt(String(body.evaluatorStake ?? "0"))).toString()
10655
+ maxAmount: extra.projectId !== void 0 ? ACTION_FEE_MAX_AMOUNT : (BigInt(String(body.reward)) + BigInt(String(body.evaluatorStake ?? "0"))).toString()
10654
10656
  });
10655
10657
  const missing = [];
10656
10658
  if (Array.isArray(result.hookAttachments)) {
@@ -10869,6 +10871,39 @@ async function termsAmountsAndDeadlines(taskId) {
10869
10871
 
10870
10872
  // src/commands/task/submit.ts
10871
10873
  import { Command as Command14, Option as Option2 } from "commander";
10874
+
10875
+ // src/lib/task-network.ts
10876
+ var WRONG_NETWORK_CODE = "wrong_network";
10877
+ async function confirmTaskOnSelectedNetwork(taskId, task) {
10878
+ let read3 = task;
10879
+ if (read3 === void 0) {
10880
+ try {
10881
+ read3 = await getTask(cliTaskReadContext(), { taskId });
10882
+ } catch {
10883
+ return true;
10884
+ }
10885
+ }
10886
+ const taskChainId = read3?.chainId;
10887
+ const network = selectedNetwork();
10888
+ if (typeof taskChainId !== "number" || taskChainId === network.chainId) return true;
10889
+ const taskNetwork = networkNameForChain(taskChainId) ?? null;
10890
+ renderFailure(
10891
+ new Error(
10892
+ `This task is on ${taskNetwork ?? `chain ${taskChainId}`}, but the selected network is ${network.name}. Re-run with ${taskmarketCommandFor(taskChainId)}.`
10893
+ ),
10894
+ {
10895
+ details: {
10896
+ code: WRONG_NETWORK_CODE,
10897
+ taskChainId,
10898
+ taskNetwork,
10899
+ selectedNetwork: network.name
10900
+ }
10901
+ }
10902
+ );
10903
+ return false;
10904
+ }
10905
+
10906
+ // src/commands/task/submit.ts
10872
10907
  function collectFile(value, previous) {
10873
10908
  return [...previous, value];
10874
10909
  }
@@ -10881,6 +10916,7 @@ var submitCmd = new Command14("submit").description("Submit work for a task").ar
10881
10916
  return;
10882
10917
  }
10883
10918
  const submissionKey = resolveIdempotencyKey();
10919
+ if (!await confirmTaskOnSelectedNetwork(taskId)) return;
10884
10920
  const keystore = await loadKeystore();
10885
10921
  const { submissionId, idempotencyKey } = await submitTaskFiles(
10886
10922
  cliTaskWriteContext(keystore),
@@ -10964,11 +11000,15 @@ var acceptCmd = new Command15("accept").description(
10964
11000
  printError(target.error);
10965
11001
  return;
10966
11002
  }
10967
- const { data: result, idempotencyKey } = await x402Post(`/api/tasks/${taskId}/accept`, {
10968
- taskId,
10969
- worker: target.worker,
10970
- ...target.submissionId ? { submissionId: target.submissionId } : {}
10971
- });
11003
+ const { data: result, idempotencyKey } = await x402Post(
11004
+ `/api/tasks/${taskId}/accept`,
11005
+ {
11006
+ taskId,
11007
+ worker: target.worker,
11008
+ ...target.submissionId ? { submissionId: target.submissionId } : {}
11009
+ },
11010
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
11011
+ );
10972
11012
  printResult(
10973
11013
  {
10974
11014
  accepted: true,
@@ -11016,7 +11056,8 @@ var acceptSubmissionsCmd = new Command16("accept-submissions").description(
11016
11056
  {
11017
11057
  taskId,
11018
11058
  winners
11019
- }
11059
+ },
11060
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
11020
11061
  );
11021
11062
  printResult(
11022
11063
  {
@@ -11039,12 +11080,16 @@ var rateCmd = new Command17("rate").description("Rate a worker (costs 0.001 in t
11039
11080
  printError("Rating must be between 0 and 100");
11040
11081
  return;
11041
11082
  }
11042
- const { data: result, idempotencyKey } = await x402Post(`/api/tasks/${taskId}/rate`, {
11043
- taskId,
11044
- worker: opts.worker,
11045
- rating,
11046
- ...opts.feedback ? { feedbackText: opts.feedback } : {}
11047
- });
11083
+ const { data: result, idempotencyKey } = await x402Post(
11084
+ `/api/tasks/${taskId}/rate`,
11085
+ {
11086
+ taskId,
11087
+ worker: opts.worker,
11088
+ rating,
11089
+ ...opts.feedback ? { feedbackText: opts.feedback } : {}
11090
+ },
11091
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
11092
+ );
11048
11093
  printResult(
11049
11094
  { feedbackId: result.feedbackId, ...await settleRecording(result, idempotencyKey) },
11050
11095
  { idempotencyKey }
@@ -11392,7 +11437,8 @@ var pitchCmd = new Command21("pitch").description("Submit a pitch for a task (co
11392
11437
  ...opts.duration ? { estimatedDuration: parseInt(opts.duration, 10) } : {},
11393
11438
  signature
11394
11439
  },
11395
- ...tap ? [{ tap }] : []
11440
+ // TAP-signed, each round with its own nonce, when the task requires tap.
11441
+ { maxAmount: ACTION_FEE_MAX_AMOUNT, ...tap ? { tap } : {} }
11396
11442
  )
11397
11443
  );
11398
11444
  printResult({ pitchId: result.pitchId }, { idempotencyKey });
@@ -11427,12 +11473,16 @@ var selectWorkerCmd = new Command23("select-worker").description(
11427
11473
  const keystore = await loadKeystore();
11428
11474
  const message = buildSelectWorkerMessage(taskId, opts.pitch, opts.worker);
11429
11475
  const signature = await signMessage(message, keystore);
11430
- const { data: result, idempotencyKey } = await x402Post(`/api/tasks/${taskId}/pitches/select`, {
11431
- taskId,
11432
- pitchId: opts.pitch,
11433
- workerAddress: opts.worker,
11434
- signature
11435
- });
11476
+ const { data: result, idempotencyKey } = await x402Post(
11477
+ `/api/tasks/${taskId}/pitches/select`,
11478
+ {
11479
+ taskId,
11480
+ pitchId: opts.pitch,
11481
+ workerAddress: opts.worker,
11482
+ signature
11483
+ },
11484
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
11485
+ );
11436
11486
  printResult(
11437
11487
  { selected: true, ...await settleRecording(result, idempotencyKey) },
11438
11488
  { idempotencyKey }
@@ -11457,7 +11507,8 @@ var proofCmd = new Command24("proof").description("Submit a benchmark proof (cos
11457
11507
  ...opts.metric ? { metricValue: opts.metric } : {},
11458
11508
  signature
11459
11509
  },
11460
- ...tap ? [{ tap }] : []
11510
+ // TAP-signed, each round with its own nonce, when the task requires tap.
11511
+ { maxAmount: ACTION_FEE_MAX_AMOUNT, ...tap ? { tap } : {} }
11461
11512
  )
11462
11513
  );
11463
11514
  printResult({ proofId: result.proofId, submissionId: result.submissionId }, { idempotencyKey });
@@ -11497,11 +11548,12 @@ var bidCmd = new Command26("bid").description("Submit a bid on an auction task")
11497
11548
  taskId,
11498
11549
  await loadKeystore(),
11499
11550
  async (tap) => x402Post(path8, body, {
11551
+ maxAmount: ACTION_FEE_MAX_AMOUNT,
11500
11552
  headers: (await signReadAuth())?.headers ?? {},
11501
11553
  ...tap ? { tap } : {}
11502
11554
  }),
11503
11555
  task
11504
- ) : await x402Post(path8, body);
11556
+ ) : await x402Post(path8, body, { maxAmount: ACTION_FEE_MAX_AMOUNT });
11505
11557
  printResult({ bidId: result.bidId }, { idempotencyKey });
11506
11558
  });
11507
11559
 
@@ -11527,11 +11579,12 @@ var auctionAcceptCmd = new Command27("auction-accept").description("Accept curre
11527
11579
  taskId,
11528
11580
  await loadKeystore(),
11529
11581
  async (tap) => x402Post(path8, body, {
11582
+ maxAmount: ACTION_FEE_MAX_AMOUNT,
11530
11583
  headers: (await signReadAuth())?.headers ?? {},
11531
11584
  ...tap ? { tap } : {}
11532
11585
  }),
11533
11586
  task
11534
- ) : await x402Post(path8, body);
11587
+ ) : await x402Post(path8, body, { maxAmount: ACTION_FEE_MAX_AMOUNT });
11535
11588
  const { chainId } = selectedNetwork();
11536
11589
  printResult(
11537
11590
  {
@@ -11722,7 +11775,8 @@ var cancelCmd = new Command34("cancel").description(
11722
11775
  }
11723
11776
  const { data: result, idempotencyKey } = await x402Post(
11724
11777
  `/api/tasks/${taskId}/cancel`,
11725
- { taskId }
11778
+ { taskId },
11779
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
11726
11780
  );
11727
11781
  printResult(
11728
11782
  { ...result, ...await settleRecording(result, idempotencyKey) },
@@ -11743,7 +11797,8 @@ var refundExpiredCmd = new Command35("refund-expired").description(
11743
11797
  try {
11744
11798
  const { data: result, idempotencyKey } = await x402Post(
11745
11799
  `/api/tasks/${taskId}/refund-expired`,
11746
- { taskId }
11800
+ { taskId },
11801
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
11747
11802
  );
11748
11803
  printResult(
11749
11804
  { ...result, ...await settleRecording(result, idempotencyKey) },
@@ -11799,7 +11854,8 @@ var requesterTimeoutCmd = new Command36("requester-timeout").description(
11799
11854
  try {
11800
11855
  const { data: result, idempotencyKey } = await x402Post(
11801
11856
  `/api/tasks/${taskId}/requester-timeout`,
11802
- { taskId }
11857
+ { taskId },
11858
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
11803
11859
  );
11804
11860
  printResult(
11805
11861
  { ...result, ...await settleRecording(result, idempotencyKey) },
@@ -11826,7 +11882,8 @@ var rejectSubmissionCmd = new Command37("reject-submission").description(
11826
11882
  {
11827
11883
  taskId,
11828
11884
  worker: opts.worker
11829
- }
11885
+ },
11886
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
11830
11887
  );
11831
11888
  printResult(
11832
11889
  { ...result, ...await settleRecording(result, idempotencyKey) },
@@ -11873,7 +11930,8 @@ var rejectAllSubmissionsCmd = new Command38("reject-all-submissions").descriptio
11873
11930
  try {
11874
11931
  const { data: res, idempotencyKey } = await x402Post(
11875
11932
  `/api/tasks/${taskId}/reject-submission`,
11876
- { taskId, worker }
11933
+ { taskId, worker },
11934
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
11877
11935
  );
11878
11936
  results.push({ worker, txHash: res.txHash, idempotencyKey });
11879
11937
  } catch (err) {
@@ -11914,7 +11972,8 @@ var rejectAllSubmissionsCmd = new Command38("reject-all-submissions").descriptio
11914
11972
  try {
11915
11973
  ({ data: cancelRes } = await x402Post(
11916
11974
  `/api/tasks/${taskId}/cancel`,
11917
- { taskId }
11975
+ { taskId },
11976
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
11918
11977
  ));
11919
11978
  } catch (err) {
11920
11979
  renderFailure(
@@ -12069,11 +12128,11 @@ var updateCmd = new Command40("update").description(
12069
12128
  const { data: result, idempotencyKey } = await x402Post(
12070
12129
  `/api/tasks/${taskId}/update`,
12071
12130
  body,
12072
- ...body.reward === void 0 || projectId !== null ? [] : [
12073
- {
12074
- maxAmount: (BigInt(TASKMARKET_FEE_DEFAULT_CEILING) + BigInt(String(body.reward))).toString()
12075
- }
12076
- ]
12131
+ // A reward increase is paid with the action fee, so the new reward bounds the extra. A
12132
+ // project task's increase comes from the project's budget: only the fee is paid.
12133
+ {
12134
+ maxAmount: body.reward === void 0 || projectId !== null ? ACTION_FEE_MAX_AMOUNT : (BigInt(ACTION_FEE_MAX_AMOUNT) + BigInt(String(body.reward))).toString()
12135
+ }
12077
12136
  );
12078
12137
  printResult(
12079
12138
  projectId !== null && increase > 0n ? { ...result, projectTopUp: projectTopUp(projectId, increase, "reward increase") } : result,
@@ -12200,7 +12259,7 @@ var assignEvaluatorCmd = new Command42("assign-evaluator").description(
12200
12259
  // The action fee plus the stake this command just confirmed; the fee alone when the
12201
12260
  // project's budget pays the stake.
12202
12261
  {
12203
- maxAmount: (BigInt(TASKMARKET_FEE_DEFAULT_CEILING) + (projectId === null ? BigInt(evaluatorStake) : 0n)).toString()
12262
+ maxAmount: (BigInt(ACTION_FEE_MAX_AMOUNT) + (projectId === null ? BigInt(evaluatorStake) : 0n)).toString()
12204
12263
  }
12205
12264
  );
12206
12265
  printResult(
@@ -12269,7 +12328,8 @@ var evaluateCmd = new Command43("evaluate").description("Submit an evaluation ve
12269
12328
  }
12270
12329
  const { data: result, idempotencyKey } = await x402Post(
12271
12330
  `/api/tasks/${taskId}/evaluate`,
12272
- body
12331
+ body,
12332
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
12273
12333
  );
12274
12334
  printResult(
12275
12335
  { txHash: result.txHash, ...await settleRecording(result, idempotencyKey) },
@@ -12284,7 +12344,7 @@ function collect2(val, prev) {
12284
12344
  // src/commands/task/appeal.ts
12285
12345
  import { Command as Command44 } from "commander";
12286
12346
  var appealCmd = new Command44("appeal").description("Appeal an evaluator verdict while in Appealing state").argument("<taskId>", "Task ID (0x-prefixed hex)").action(async (taskId) => {
12287
- const { data: result, idempotencyKey } = await x402Post(`/api/tasks/${taskId}/appeal`, { taskId });
12347
+ const { data: result, idempotencyKey } = await x402Post(`/api/tasks/${taskId}/appeal`, { taskId }, { maxAmount: ACTION_FEE_MAX_AMOUNT });
12288
12348
  printResult(
12289
12349
  { txHash: result.txHash, ...await settleRecording(result, idempotencyKey) },
12290
12350
  { idempotencyKey }
@@ -12294,7 +12354,7 @@ var appealCmd = new Command44("appeal").description("Appeal an evaluator verdict
12294
12354
  // src/commands/task/evaluator-timeout.ts
12295
12355
  import { Command as Command45 } from "commander";
12296
12356
  var evaluatorTimeoutCmd = new Command45("evaluator-timeout").description("Trigger evaluator timeout after the evaluation window expires (anyone)").argument("<taskId>", "Task ID (0x-prefixed hex)").action(async (taskId) => {
12297
- const { data: result, idempotencyKey } = await x402Post(`/api/tasks/${taskId}/evaluator-timeout`, { taskId });
12357
+ const { data: result, idempotencyKey } = await x402Post(`/api/tasks/${taskId}/evaluator-timeout`, { taskId }, { maxAmount: ACTION_FEE_MAX_AMOUNT });
12298
12358
  printResult(
12299
12359
  { txHash: result.txHash, ...await settleRecording(result, idempotencyKey) },
12300
12360
  { idempotencyKey }
@@ -12356,7 +12416,8 @@ var resolveDisputeCmd = new Command47("resolve-dispute").description(
12356
12416
  taskId,
12357
12417
  verdict: opts.verdict,
12358
12418
  awards
12359
- }
12419
+ },
12420
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
12360
12421
  );
12361
12422
  printResult(
12362
12423
  { txHash: result.txHash, ...await settleRecording(result, idempotencyKey) },
@@ -12755,7 +12816,7 @@ async function runAgentCommand(options) {
12755
12816
  try {
12756
12817
  const { assertAgentCompatibility } = await import("./compatibility-636WJOEX.js");
12757
12818
  const pi = assertAgentCompatibility();
12758
- const { runAgent } = await import("./launch-BGOVTUPV.js");
12819
+ const { runAgent } = await import("./launch-RFRQPJAY.js");
12759
12820
  result = await runAgent({
12760
12821
  model: options.model,
12761
12822
  pi,
@@ -13189,13 +13250,13 @@ function agentManagementCommands() {
13189
13250
  const status = new Command57("status").description(
13190
13251
  "Show the agent channels (locked, charged, refundable), purchases with an unknown outcome, the sandbox and compute credit. Reads only."
13191
13252
  ).action(async () => {
13192
- const { collectAgentStatus } = await import("./status-O6GBRFDB.js");
13253
+ const { collectAgentStatus } = await import("./status-CDPRDSYZ.js");
13193
13254
  await run(() => collectAgentStatus());
13194
13255
  });
13195
13256
  const doctor = new Command57("doctor").description(
13196
13257
  "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."
13197
13258
  ).action(async () => {
13198
- const { runDoctor } = await import("./doctor-BCC7R7AE.js");
13259
+ const { runDoctor } = await import("./doctor-5KU2FAWD.js");
13199
13260
  const report = await run(() => runDoctor());
13200
13261
  if (report && !report.ok) process.exitCode = 1;
13201
13262
  });
@@ -13206,7 +13267,7 @@ function agentManagementCommands() {
13206
13267
  "Reconcile the open purchases of this channel, as status lists it; also reaches retired channels"
13207
13268
  ).action(
13208
13269
  async (invocationId, options) => {
13209
- const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-CSMSM4OC.js");
13270
+ const { reconcileChannelPurchases, reconcileInvocation } = await import("./reconcile-ZTCPP3G5.js");
13210
13271
  const choice = { rail: options.rail, channel: options.channel };
13211
13272
  if (invocationId !== void 0) {
13212
13273
  await run(() => reconcileInvocation(invocationId, { choice }));
@@ -13238,7 +13299,7 @@ function agentManagementCommands() {
13238
13299
  `Not a USDC amount: ${options.amount} (digits, at most 6 decimals)`
13239
13300
  );
13240
13301
  }
13241
- const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-347BLVQI.js");
13302
+ const { openAgentChannels, requestTopUp, selectRail, withdrawalHatch } = await import("./channels-ZNOTOJIS.js");
13242
13303
  const { rails } = await openAgentChannels();
13243
13304
  const result = await requestTopUp(selectRail(rails, options.rail), amount);
13244
13305
  return {
@@ -13258,8 +13319,8 @@ function agentManagementCommands() {
13258
13319
  await run(async () => {
13259
13320
  await requireExperimental();
13260
13321
  const { AGENT_VIEW_VERSION } = await import("./budget-view-J6L7X6EY.js");
13261
- const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-347BLVQI.js");
13262
- const { reconcileLeasedPurchase } = await import("./reconcile-CSMSM4OC.js");
13322
+ const { closeChannel, openAgentChannels, selectChannel } = await import("./channels-ZNOTOJIS.js");
13323
+ const { reconcileLeasedPurchase } = await import("./reconcile-ZTCPP3G5.js");
13263
13324
  const opened = await openAgentChannels();
13264
13325
  const { rail, retired } = selectChannel(opened, options);
13265
13326
  const result = await closeChannel(
@@ -13313,7 +13374,7 @@ function agentManagementCommands() {
13313
13374
  async (options) => {
13314
13375
  await run(async () => {
13315
13376
  await requireExperimental();
13316
- const { runPull } = await import("./sync-pull-765XDDFN.js");
13377
+ const { runPull } = await import("./sync-pull-R7EBZKUG.js");
13317
13378
  const { terminalPrompter } = await import("./prompter-LSICEYSQ.js");
13318
13379
  return runPull(options, {
13319
13380
  interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
@@ -25143,11 +25204,11 @@ async function postProjectWrite(path8, body, options) {
25143
25204
  const { data: result, idempotencyKey } = await x402Post(
25144
25205
  path8,
25145
25206
  { chainId: selectedNetwork().chainId, ...body },
25146
- options?.maxAmount !== void 0 ? { maxAmount: options.maxAmount } : void 0
25207
+ { maxAmount: options.maxAmount }
25147
25208
  );
25148
25209
  printResult(
25149
- { ...result, ...options?.extra, ...await settleRecording(result, idempotencyKey) },
25150
- { idempotencyKey, ...options?.warnings?.length ? { warnings: options.warnings } : {} }
25210
+ { ...result, ...options.extra, ...await settleRecording(result, idempotencyKey) },
25211
+ { idempotencyKey, ...options.warnings?.length ? { warnings: options.warnings } : {} }
25151
25212
  );
25152
25213
  }
25153
25214
 
@@ -25177,7 +25238,11 @@ var projectAcceptCommand = new Command127("accept").description(
25177
25238
  if (!mine) return void printError("No grant to this wallet on the project");
25178
25239
  termsHash = mine.termsHash;
25179
25240
  }
25180
- await postProjectWrite(`/api/projects/${projectId}/grants/accept`, { projectId, termsHash });
25241
+ await postProjectWrite(
25242
+ `/api/projects/${projectId}/grants/accept`,
25243
+ { projectId, termsHash },
25244
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
25245
+ );
25181
25246
  });
25182
25247
 
25183
25248
  // src/commands/project/add-task.ts
@@ -25297,10 +25362,14 @@ var projectClaimCommand = new Command129("claim").description(
25297
25362
  if (backer !== void 0 && (!ADDRESS.test(backer) || /^0x0{40}$/i.test(backer))) {
25298
25363
  return void printError("Invalid Ethereum address for --backer");
25299
25364
  }
25300
- await postProjectWrite(`/api/projects/${projectId}/claim`, {
25301
- projectId,
25302
- ...backer ? { backer } : {}
25303
- });
25365
+ await postProjectWrite(
25366
+ `/api/projects/${projectId}/claim`,
25367
+ {
25368
+ projectId,
25369
+ ...backer ? { backer } : {}
25370
+ },
25371
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
25372
+ );
25304
25373
  });
25305
25374
 
25306
25375
  // src/commands/project/close.ts
@@ -25310,7 +25379,11 @@ var projectCloseCommand = new Command130("close").description(
25310
25379
  ).argument("<projectId>", "Project id").action(async (id) => {
25311
25380
  const projectId = parseProjectId(id);
25312
25381
  if (typeof projectId !== "number") return void printError(projectId.error);
25313
- await postProjectWrite(`/api/projects/${projectId}/close`, { projectId });
25382
+ await postProjectWrite(
25383
+ `/api/projects/${projectId}/close`,
25384
+ { projectId },
25385
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
25386
+ );
25314
25387
  });
25315
25388
 
25316
25389
  // src/commands/project/create.ts
@@ -25416,7 +25489,9 @@ var projectGrantCommand = new Command133("grant").description(
25416
25489
  if (typeof projectId !== "number") return void printError(projectId.error);
25417
25490
  const body = grantBody(projectId, opts);
25418
25491
  if ("error" in body) return void printError(String(body.error));
25419
- await postProjectWrite(`/api/projects/${projectId}/grants`, body);
25492
+ await postProjectWrite(`/api/projects/${projectId}/grants`, body, {
25493
+ maxAmount: ACTION_FEE_MAX_AMOUNT
25494
+ });
25420
25495
  });
25421
25496
 
25422
25497
  // src/commands/project/review.ts
@@ -25455,7 +25530,7 @@ var projectReviewCommand = new Command134("review").description(
25455
25530
  await postProjectWrite(
25456
25531
  `/api/projects/${projectId}/review`,
25457
25532
  { projectId, evaluator },
25458
- { warnings: await ownerEvaluatorWarnings(evaluator) }
25533
+ { maxAmount: ACTION_FEE_MAX_AMOUNT, warnings: await ownerEvaluatorWarnings(evaluator) }
25459
25534
  );
25460
25535
  });
25461
25536
  async function ownerEvaluatorWarnings(evaluator) {
@@ -25486,10 +25561,14 @@ var projectRevokeCommand = new Command135("revoke").description(
25486
25561
  if (!ADDRESS.test(opts.operator)) {
25487
25562
  return void printError("--operator must be a wallet address (0x + 40 hex chars)");
25488
25563
  }
25489
- await postProjectWrite(`/api/projects/${projectId}/grants/${opts.operator}/revoke`, {
25490
- projectId,
25491
- operator: opts.operator
25492
- });
25564
+ await postProjectWrite(
25565
+ `/api/projects/${projectId}/grants/${opts.operator}/revoke`,
25566
+ {
25567
+ projectId,
25568
+ operator: opts.operator
25569
+ },
25570
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
25571
+ );
25493
25572
  });
25494
25573
 
25495
25574
  // src/commands/project/schedule.ts
@@ -25630,7 +25709,11 @@ var createCommand3 = new Command136("create").description(
25630
25709
  ).requiredOption("--file <path>", "The template, JSON").action(async (opts) => {
25631
25710
  const template = await readValidTemplate(opts.file);
25632
25711
  if (!template) return;
25633
- await postProjectWrite("/api/project-workflow-templates", { template });
25712
+ await postProjectWrite(
25713
+ "/api/project-workflow-templates",
25714
+ { template },
25715
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
25716
+ );
25634
25717
  });
25635
25718
  var updateCommand = new Command136("update").description(
25636
25719
  "Replace a saved template with a JSON file, as the wallet that saved it; workflows already made from it keep their document. Costs 0.001 in the payment token"
@@ -25643,10 +25726,14 @@ var updateCommand = new Command136("update").description(
25643
25726
  }
25644
25727
  const template = await readValidTemplate(opts.file);
25645
25728
  if (!template) return;
25646
- await postProjectWrite(`/api/project-workflow-templates/${choice.templateId}/update`, {
25647
- templateId: choice.templateId,
25648
- template
25649
- });
25729
+ await postProjectWrite(
25730
+ `/api/project-workflow-templates/${choice.templateId}/update`,
25731
+ {
25732
+ templateId: choice.templateId,
25733
+ template
25734
+ },
25735
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
25736
+ );
25650
25737
  });
25651
25738
  var listCommand6 = new Command136("list").description(
25652
25739
  "List the official templates (official: true, ids official:<slug>), the built-in presets and a wallet's saved templates, newest first (your wallet unless --owner is given). Any wallet may make a workflow from any of them (free)"
@@ -25714,9 +25801,13 @@ var deleteCommand2 = new Command136("delete").description(
25714
25801
  "Presets and official templates are read-only; delete takes a saved template id (UUID)"
25715
25802
  );
25716
25803
  }
25717
- await postProjectWrite(`/api/project-workflow-templates/${choice.templateId}/delete`, {
25718
- templateId: choice.templateId
25719
- });
25804
+ await postProjectWrite(
25805
+ `/api/project-workflow-templates/${choice.templateId}/delete`,
25806
+ {
25807
+ templateId: choice.templateId
25808
+ },
25809
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
25810
+ );
25720
25811
  });
25721
25812
  var workflowTemplateCommand = new Command136("template").description(
25722
25813
  "Workflow templates: a workflow saved once with declared parameters ({{reward}}, {{topic}}) and made into a workflow on any of your projects with `taskmarket workflow create <projectId> --template <id|official:slug|preset> --param name=value`. Any wallet may use any template; only the wallet that saved one may update or delete it. Official templates: see `taskmarket workflow template list`. Presets: code, content, research"
@@ -25726,11 +25817,15 @@ async function createWorkflowFromTemplate(projectId, template, pairs) {
25726
25817
  if ("error" in choice) return void printError(choice.error);
25727
25818
  const parsed = parseParams(pairs);
25728
25819
  if ("error" in parsed) return void printError(parsed.error);
25729
- await postProjectWrite(`/api/projects/${projectId}/workflows/from-template`, {
25730
- projectId,
25731
- ...choice,
25732
- params: parsed.params
25733
- });
25820
+ await postProjectWrite(
25821
+ `/api/projects/${projectId}/workflows/from-template`,
25822
+ {
25823
+ projectId,
25824
+ ...choice,
25825
+ params: parsed.params
25826
+ },
25827
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
25828
+ );
25734
25829
  }
25735
25830
 
25736
25831
  // src/commands/project/schedule.ts
@@ -25961,7 +26056,9 @@ var createCommand4 = new Command137("create").description(
25961
26056
  if (workflow !== null && "error" in workflow) return void printError(workflow.error);
25962
26057
  const body = scheduleCreateBody(projectId, opts, workflow ?? void 0);
25963
26058
  if ("error" in body) return void printError(String(body.error));
25964
- await postProjectWrite(`/api/projects/${projectId}/schedules`, body);
26059
+ await postProjectWrite(`/api/projects/${projectId}/schedules`, body, {
26060
+ maxAmount: ACTION_FEE_MAX_AMOUNT
26061
+ });
25965
26062
  });
25966
26063
  var OWNER_SCHEDULE_STATUSES = [...STATUSES, "needs_action", "all"];
25967
26064
  var listCommand7 = new Command137("list").description(
@@ -26008,7 +26105,11 @@ function actionCommand(action, description) {
26008
26105
  return new Command137(action).description(description).argument("<scheduleId>", "Schedule id").action(async (value) => {
26009
26106
  const id = scheduleId(value);
26010
26107
  if (typeof id !== "string") return void printError(id.error);
26011
- await postProjectWrite(`/api/project-schedules/${id}/${action}`, { scheduleId: id });
26108
+ await postProjectWrite(
26109
+ `/api/project-schedules/${id}/${action}`,
26110
+ { scheduleId: id },
26111
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
26112
+ );
26012
26113
  });
26013
26114
  }
26014
26115
  var settingsCommand = new Command137("settings").description(
@@ -26029,7 +26130,9 @@ var settingsCommand = new Command137("settings").description(
26029
26130
  return;
26030
26131
  }
26031
26132
  if ("error" in body) return void printError(String(body.error));
26032
- await postProjectWrite(`/api/projects/${projectId}/schedules/settings`, body);
26133
+ await postProjectWrite(`/api/projects/${projectId}/schedules/settings`, body, {
26134
+ maxAmount: ACTION_FEE_MAX_AMOUNT
26135
+ });
26033
26136
  });
26034
26137
  var projectScheduleCommand = new Command137("schedule").description(
26035
26138
  "Schedules: a task from the project's budget on a cadence, created by the platform runner under your grant to it"
@@ -26308,10 +26411,14 @@ var createCommand5 = new Command140("create").description(
26308
26411
  }
26309
26412
  );
26310
26413
  }
26311
- await postProjectWrite(`/api/projects/${projectId}/workflows`, {
26312
- projectId,
26313
- document: parsed.document
26314
- });
26414
+ await postProjectWrite(
26415
+ `/api/projects/${projectId}/workflows`,
26416
+ {
26417
+ projectId,
26418
+ document: parsed.document
26419
+ },
26420
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
26421
+ );
26315
26422
  });
26316
26423
  var OWNER_WORKFLOW_STATUSES = ["needs_action", "running", "failed", "idle", "all"];
26317
26424
  var listCommand8 = new Command140("list").description(
@@ -26373,7 +26480,11 @@ var runCommand2 = new Command140("run").description(
26373
26480
  ).argument("<workflowId>", "Workflow id").action(async (value) => {
26374
26481
  const id = uuid(value, "workflow");
26375
26482
  if (typeof id !== "string") return void printError(id.error);
26376
- await postProjectWrite(`/api/project-workflows/${id}/runs`, { workflowId: id });
26483
+ await postProjectWrite(
26484
+ `/api/project-workflows/${id}/runs`,
26485
+ { workflowId: id },
26486
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
26487
+ );
26377
26488
  });
26378
26489
  function stepCommand(action, description) {
26379
26490
  return new Command140(action).description(description).argument("<runId>", "Run id").requiredOption(
@@ -26384,7 +26495,11 @@ function stepCommand(action, description) {
26384
26495
  if (typeof id !== "string") return void printError(id.error);
26385
26496
  const step = stepKey(opts.step);
26386
26497
  if (typeof step !== "string") return void printError(step.error);
26387
- await postProjectWrite(`/api/project-workflow-runs/${id}/${action}`, { runId: id, step });
26498
+ await postProjectWrite(
26499
+ `/api/project-workflow-runs/${id}/${action}`,
26500
+ { runId: id, step },
26501
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
26502
+ );
26388
26503
  });
26389
26504
  }
26390
26505
  var cancelCommand = new Command140("cancel").description(
@@ -26392,21 +26507,33 @@ var cancelCommand = new Command140("cancel").description(
26392
26507
  ).argument("<runId>", "Run id").action(async (value) => {
26393
26508
  const id = uuid(value, "run");
26394
26509
  if (typeof id !== "string") return void printError(id.error);
26395
- await postProjectWrite(`/api/project-workflow-runs/${id}/cancel`, { runId: id });
26510
+ await postProjectWrite(
26511
+ `/api/project-workflow-runs/${id}/cancel`,
26512
+ { runId: id },
26513
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
26514
+ );
26396
26515
  });
26397
26516
  var stopAutoPayoutCommand = new Command140("stop-auto-payout").description(
26398
26517
  "Stop automatic payouts and automatic review acceptance on a run, as the owner, at once and for good: from then on every pending step's review waits for you to accept it and every payout becomes a proposal you confirm (`taskmarket workflow payout confirm`); the runner sends nothing. A second stop changes nothing; refused on a completed or cancelled run. Costs 0.001 in the payment token"
26399
26518
  ).argument("<runId>", "Run id").action(async (value) => {
26400
26519
  const id = uuid(value, "run");
26401
26520
  if (typeof id !== "string") return void printError(id.error);
26402
- await postProjectWrite(`/api/project-workflow-runs/${id}/stop-auto-payout`, { runId: id });
26521
+ await postProjectWrite(
26522
+ `/api/project-workflow-runs/${id}/stop-auto-payout`,
26523
+ { runId: id },
26524
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
26525
+ );
26403
26526
  });
26404
26527
  var deleteCommand3 = new Command140("delete").description(
26405
26528
  "Delete a workflow, as the owner, so it no longer counts toward the project limit of 50. Refused while a run is running or failed (cancel it first); ended runs go with it, and tasks they opened are not touched. Costs 0.001 in the payment token"
26406
26529
  ).argument("<workflowId>", "Workflow id").action(async (value) => {
26407
26530
  const id = uuid(value, "workflow");
26408
26531
  if (typeof id !== "string") return void printError(id.error);
26409
- await postProjectWrite(`/api/project-workflows/${id}/delete`, { workflowId: id });
26532
+ await postProjectWrite(
26533
+ `/api/project-workflows/${id}/delete`,
26534
+ { workflowId: id },
26535
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
26536
+ );
26410
26537
  });
26411
26538
  async function ownerGet(path8) {
26412
26539
  const auth = await signReadAuth();
@@ -26453,7 +26580,7 @@ var payoutConfirmCommand = new Command140("confirm").description(
26453
26580
  await postProjectWrite(
26454
26581
  `/api/project-workflow-payouts/${id}/confirm`,
26455
26582
  { proposalId: id },
26456
- { extra: { accept: view.accept } }
26583
+ { maxAmount: ACTION_FEE_MAX_AMOUNT, extra: { accept: view.accept } }
26457
26584
  );
26458
26585
  });
26459
26586
  var payoutCommand = new Command140("payout").description(
@@ -26481,10 +26608,14 @@ var settingsCommand2 = new Command140("settings").description(
26481
26608
  `--step-limit must be an integer from ${WORKFLOW_STEP_LIMIT_MIN} to ${WORKFLOW_STEP_LIMIT_MAX}`
26482
26609
  );
26483
26610
  }
26484
- await postProjectWrite(`/api/projects/${projectId}/workflows/settings`, {
26485
- projectId,
26486
- stepLimit: limit
26487
- });
26611
+ await postProjectWrite(
26612
+ `/api/projects/${projectId}/workflows/settings`,
26613
+ {
26614
+ projectId,
26615
+ stepLimit: limit
26616
+ },
26617
+ { maxAmount: ACTION_FEE_MAX_AMOUNT }
26618
+ );
26488
26619
  });
26489
26620
  var workflowCommand = new Command140("workflow").description(
26490
26621
  "Workflows: project tasks composed from named patterns (sequence, parallel, forEach, reviewLoop, gate, contest, branch, fallback), run by the platform runner under your grant to it. A gate waits for your approval, a step verdict or a time. A workflow is the document; a run is one execution of it"
@@ -38,7 +38,7 @@ import {
38
38
  sha256Hex,
39
39
  specHash,
40
40
  taskStage
41
- } from "./chunk-OUUCDNIE.js";
41
+ } from "./chunk-SPG5J4RN.js";
42
42
  import {
43
43
  SessionSync,
44
44
  emptyBase,
@@ -78,7 +78,7 @@ import {
78
78
  requestArtifactUpload,
79
79
  submitUploadedArtifacts,
80
80
  taskAwardsOf
81
- } from "./chunk-YSOV3WQK.js";
81
+ } from "./chunk-62QDQXS3.js";
82
82
  import {
83
83
  applyComputeCreditSetup,
84
84
  atomicToUsd,
@@ -88,10 +88,10 @@ import {
88
88
  planComputeCreditSetup,
89
89
  readComputeCreditBalance,
90
90
  usdToAtomic
91
- } from "./chunk-EDZKOEOY.js";
91
+ } from "./chunk-LT4DDAEZ.js";
92
92
  import {
93
93
  signReadAuth
94
- } from "./chunk-NFSTIKPI.js";
94
+ } from "./chunk-CH3OZ5EM.js";
95
95
  import {
96
96
  taskAccessGrantHeaders
97
97
  } from "./chunk-QVP3VXGD.js";
@@ -118,7 +118,7 @@ import {
118
118
  routeOfCatalogRow,
119
119
  saveAgentPolicy,
120
120
  settledRetiredRails
121
- } from "./chunk-TSMFV7XG.js";
121
+ } from "./chunk-CWANOJKR.js";
122
122
  import {
123
123
  BASE_CHANNEL_RAIL_ID,
124
124
  createBaseChannelPayer,
@@ -138,7 +138,7 @@ import {
138
138
  keystoreExists,
139
139
  loadKeystore,
140
140
  selectedNetwork
141
- } from "./chunk-34AFGDDW.js";
141
+ } from "./chunk-KC32V4AD.js";
142
142
  import {
143
143
  IntentStatusResponseSchema,
144
144
  NetworkChainInfoSchema,
@@ -1,8 +1,8 @@
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-NFSTIKPI.js";
5
- import "./chunk-34AFGDDW.js";
4
+ } from "./chunk-CH3OZ5EM.js";
5
+ import "./chunk-KC32V4AD.js";
6
6
  import "./chunk-6WOUTOR4.js";
7
7
  import "./chunk-S7SJMJ2I.js";
8
8
  export {
@@ -3,14 +3,14 @@ import {
3
3
  channelView,
4
4
  openAgentChannels,
5
5
  selectChannel
6
- } from "./chunk-TSMFV7XG.js";
6
+ } from "./chunk-CWANOJKR.js";
7
7
  import {
8
8
  BASE_CHANNEL_RAIL_ID,
9
9
  X402_INVOCATION_ID_PATTERN,
10
10
  getX402JournalPath,
11
11
  listX402Payments
12
12
  } from "./chunk-OUV2RQSB.js";
13
- import "./chunk-34AFGDDW.js";
13
+ import "./chunk-KC32V4AD.js";
14
14
  import "./chunk-6WOUTOR4.js";
15
15
  import {
16
16
  AgentLaunchError
@@ -4,13 +4,13 @@ import {
4
4
  listSandboxes,
5
5
  readSyncStatus,
6
6
  readTaskStatus
7
- } from "./chunk-XFCZYEKA.js";
8
- import "./chunk-OUUCDNIE.js";
7
+ } from "./chunk-PSN4GDLD.js";
8
+ import "./chunk-SPG5J4RN.js";
9
9
  import "./chunk-R6QEAGHK.js";
10
- import "./chunk-EDZKOEOY.js";
11
- import "./chunk-TSMFV7XG.js";
10
+ import "./chunk-LT4DDAEZ.js";
11
+ import "./chunk-CWANOJKR.js";
12
12
  import "./chunk-OUV2RQSB.js";
13
- import "./chunk-34AFGDDW.js";
13
+ import "./chunk-KC32V4AD.js";
14
14
  import "./chunk-6WOUTOR4.js";
15
15
  import "./chunk-YM4S6IE4.js";
16
16
  import "./chunk-XJOB4NMV.js";
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  apiUrl,
33
33
  loadKeystore
34
- } from "./chunk-34AFGDDW.js";
34
+ } from "./chunk-KC32V4AD.js";
35
35
  import "./chunk-6WOUTOR4.js";
36
36
  import {
37
37
  AgentLaunchError
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucid-agents/taskmarket",
3
- "version": "1.32.0",
3
+ "version": "1.32.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "taskmarket": "./dist/index.js"
@@ -33,8 +33,8 @@
33
33
  "@taskmarket/agent-host": "0.0.1",
34
34
  "@taskmarket/contracts": "0.0.0",
35
35
  "@taskmarket/eslint-config": "0.0.0",
36
- "@taskmarket/prettier-config": "0.0.0",
37
36
  "@taskmarket/remote-tools": "0.0.1",
37
+ "@taskmarket/prettier-config": "0.0.0",
38
38
  "@taskmarket/shared": "2.0.0",
39
39
  "@taskmarket/solana-sponsored-client": "0.1.0",
40
40
  "@taskmarket/x402-payer": "0.1.0"