@lucid-agents/taskmarket 1.30.0 → 1.31.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-JLEPMDTE.js → api-72EG7RDG.js} +2 -2
  3. package/dist/{channels-BUVR2LSZ.js → channels-WVJNWZHJ.js} +4 -4
  4. package/dist/{chunk-VE4GYPEZ.js → chunk-3YNTCMLY.js} +1 -1
  5. package/dist/{chunk-5YR4AZAD.js → chunk-4E4WY6AJ.js} +3 -3
  6. package/dist/{chunk-J27HWZ7Y.js → chunk-7KGKGZLK.js} +1 -1
  7. package/dist/{chunk-E7HXLN2A.js → chunk-AUQJBVNF.js} +2 -2
  8. package/dist/{chunk-HET5ZDJT.js → chunk-GO4PAHB3.js} +13 -1
  9. package/dist/{chunk-S52R3ZY5.js → chunk-JI63EPPO.js} +1 -1
  10. package/dist/{chunk-RY4U7U45.js → chunk-LEQ4JRAS.js} +7247 -4574
  11. package/dist/{chunk-CPYULZB3.js → chunk-PCSHRHUX.js} +3 -3
  12. package/dist/{chunk-QS4JQF6W.js → chunk-PSFCFRC4.js} +5 -5
  13. package/dist/{chunk-6C63PTFL.js → chunk-SJZEU7FN.js} +27 -13
  14. package/dist/{chunk-CJS2PHFX.js → chunk-VIKSHMQ7.js} +3 -3
  15. package/dist/{chunk-MSTGI2YG.js → chunk-VLXBDE22.js} +1 -1
  16. package/dist/{doctor-RYO3E7UL.js → doctor-JP77AWIU.js} +8 -8
  17. package/dist/index.js +4701 -1260
  18. package/dist/{launch-5NLS7GTY.js → launch-DFIZTKMO.js} +15 -13
  19. package/dist/pi-extensions/xgate.cjs +2413 -74
  20. package/dist/{read-auth-GIBB7BSS.js → read-auth-U6CQ2ATH.js} +3 -3
  21. package/dist/{reconcile-YEIABUC6.js → reconcile-TD7RMO4A.js} +4 -4
  22. package/dist/{status-K3CANP2J.js → status-P3NIGGYJ.js} +8 -8
  23. package/dist/{sync-pull-JK2V7ZZF.js → sync-pull-TH3U6DPI.js} +4 -4
  24. package/dist/{task-access-grants-FS7OSOE2.js → task-access-grants-4GVGJEKT.js} +2 -2
  25. package/package.json +2 -2
@@ -38,7 +38,7 @@ import {
38
38
  sha256Hex,
39
39
  specHash,
40
40
  taskStage
41
- } from "./chunk-CPYULZB3.js";
41
+ } from "./chunk-PCSHRHUX.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-J27HWZ7Y.js";
50
+ } from "./chunk-7KGKGZLK.js";
51
51
  import {
52
52
  BrokerConnector,
53
53
  OutputLimitError,
@@ -59,12 +59,12 @@ import {
59
59
  serveSandboxChannel,
60
60
  withFileLock,
61
61
  writeAtomic
62
- } from "./chunk-S52R3ZY5.js";
62
+ } from "./chunk-JI63EPPO.js";
63
63
  import {
64
64
  TaskOperationError,
65
- authorizeUploads,
66
65
  claimTask,
67
66
  cliTaskTransport,
67
+ freshUploadAuthorization,
68
68
  getAgentStats,
69
69
  getTask,
70
70
  getWorkerInbox,
@@ -78,7 +78,7 @@ import {
78
78
  requestArtifactUpload,
79
79
  submitUploadedArtifacts,
80
80
  taskAwardsOf
81
- } from "./chunk-6C63PTFL.js";
81
+ } from "./chunk-SJZEU7FN.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-5YR4AZAD.js";
91
+ } from "./chunk-4E4WY6AJ.js";
92
92
  import {
93
93
  signReadAuth
94
- } from "./chunk-E7HXLN2A.js";
94
+ } from "./chunk-AUQJBVNF.js";
95
95
  import {
96
96
  taskAccessGrantHeaders
97
- } from "./chunk-MSTGI2YG.js";
97
+ } from "./chunk-VLXBDE22.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-CJS2PHFX.js";
121
+ } from "./chunk-VIKSHMQ7.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-VE4GYPEZ.js";
135
+ } from "./chunk-3YNTCMLY.js";
136
136
  import {
137
137
  apiUrl,
138
138
  keystoreExists,
139
139
  loadKeystore,
140
140
  selectedNetwork
141
- } from "./chunk-HET5ZDJT.js";
141
+ } from "./chunk-GO4PAHB3.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-RY4U7U45.js";
150
+ } from "./chunk-LEQ4JRAS.js";
151
151
  import {
152
152
  AgentLaunchError
153
153
  } from "./chunk-YM4S6IE4.js";
@@ -1017,7 +1017,7 @@ async function submitUnderLock(ctx, ref, hash, options, recordId) {
1017
1017
  }
1018
1018
  }
1019
1019
  if (record.phase === "uploading") {
1020
- const authorization = await authorizeUploads(ctx, ref);
1020
+ let authorization;
1021
1021
  for (const [index, artifact] of record.artifacts.entries()) {
1022
1022
  if (artifact.uploaded) continue;
1023
1023
  const put = (uploadUrl) => ctx.transport.put({
@@ -1027,6 +1027,7 @@ async function submitUnderLock(ctx, ref, hash, options, recordId) {
1027
1027
  fileName: artifact.fileName
1028
1028
  });
1029
1029
  const issue = async () => {
1030
+ authorization = await freshUploadAuthorization(ctx, ref, authorization);
1030
1031
  const grant = await requestArtifactUpload(ctx, ref, artifact, authorization);
1031
1032
  artifact.artifactKey = grant.artifactKey;
1032
1033
  artifact.uploadUrl = grant.uploadUrl;
@@ -4788,6 +4789,7 @@ function createMarketReader(options) {
4788
4789
  ...minReward !== void 0 ? { minReward: minReward.toString() } : {},
4789
4790
  ...maxReward !== void 0 ? { maxReward: maxReward.toString() } : {},
4790
4791
  ...deadlineHours !== void 0 ? { deadlineHours: String(deadlineHours) } : {},
4792
+ ...args.sponsored === true ? { sponsored: true } : {},
4791
4793
  ...sort ? { sort } : {},
4792
4794
  limit: String(limit),
4793
4795
  ...typeof cursor === "string" ? { cursor } : {}