@lucid-agents/taskmarket 1.42.0 → 1.43.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "taskmarket": "1.42.0",
2
+ "taskmarket": "1.43.0",
3
3
  "manifestVersion": 1,
4
4
  "pi": {
5
5
  "package": "@earendil-works/pi-coding-agent",
@@ -14,8 +14,8 @@ import {
14
14
  parseFailureBody,
15
15
  readFailureBody,
16
16
  withErrorContext
17
- } from "./chunk-3FI5KV44.js";
18
- import "./chunk-JOVLOWPY.js";
17
+ } from "./chunk-XZZKUMHQ.js";
18
+ import "./chunk-MGDBSENK.js";
19
19
  import "./chunk-S7SJMJ2I.js";
20
20
  export {
21
21
  ApiError,
@@ -10,10 +10,10 @@ import {
10
10
  selectRail,
11
11
  uncertainPurchases,
12
12
  withdrawalHatch
13
- } from "./chunk-IN6WPBUK.js";
14
- import "./chunk-5IOQEQH3.js";
15
- import "./chunk-3FI5KV44.js";
16
- import "./chunk-JOVLOWPY.js";
13
+ } from "./chunk-Z7MFEW73.js";
14
+ import "./chunk-F532X4HL.js";
15
+ import "./chunk-XZZKUMHQ.js";
16
+ import "./chunk-MGDBSENK.js";
17
17
  import "./chunk-YM4S6IE4.js";
18
18
  import "./chunk-XJOB4NMV.js";
19
19
  import "./chunk-S7SJMJ2I.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-UXZ5ZDBF.js";
4
+ } from "./chunk-YS3YH7U3.js";
5
5
  import {
6
6
  signReadAuth
7
- } from "./chunk-ASZ3YR77.js";
7
+ } from "./chunk-FNSX2KLZ.js";
8
8
  import {
9
9
  taskAccessGrantHeaders
10
- } from "./chunk-L67V45XI.js";
10
+ } from "./chunk-FKQBRXQS.js";
11
11
  import {
12
12
  apiGet,
13
13
  apiPost,
@@ -15,7 +15,7 @@ import {
15
15
  runWorkerAction,
16
16
  signMessage,
17
17
  taskRequiresTap
18
- } from "./chunk-3FI5KV44.js";
18
+ } from "./chunk-XZZKUMHQ.js";
19
19
  import {
20
20
  TaskAwardSchema,
21
21
  buildClaimMessage,
@@ -23,7 +23,7 @@ import {
23
23
  buildSubmitUploadMessage,
24
24
  isRecordingPendingResponse,
25
25
  submitUploadExpiresAt
26
- } from "./chunk-JOVLOWPY.js";
26
+ } from "./chunk-MGDBSENK.js";
27
27
 
28
28
  // src/sdk/artifact-upload.ts
29
29
  import { extname } from "path";
@@ -115,9 +115,9 @@ function putArtifactBytes(uploadUrl, data, mimeType, onProgress, idleTimeoutMs =
115
115
  // src/lib/worker-attestation.ts
116
116
  var requirementCache = /* @__PURE__ */ new Map();
117
117
  async function defaultGet(path) {
118
- const { apiGet: apiGet2 } = await import("./api-4I33LJ7A.js");
119
- const { signReadAuth: signReadAuth2 } = await import("./read-auth-YC7ZM7J3.js");
120
- const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-4T4IPSVF.js");
118
+ const { apiGet: apiGet2 } = await import("./api-HZEK636T.js");
119
+ const { signReadAuth: signReadAuth2 } = await import("./read-auth-UAZUJEEQ.js");
120
+ const { taskAccessGrantHeaders: taskAccessGrantHeaders2 } = await import("./task-access-grants-5I7QQXZV.js");
121
121
  const taskId = /^\/api\/tasks\/([^/?]+)/.exec(path)?.[1] ?? "";
122
122
  return apiGet2(path, {
123
123
  headers: {
@@ -8,7 +8,7 @@ import {
8
8
  getTaskmarketHome,
9
9
  mppAttributionMemo,
10
10
  parseMppChallenge
11
- } from "./chunk-JOVLOWPY.js";
11
+ } from "./chunk-MGDBSENK.js";
12
12
 
13
13
  // ../../packages/x402-payer/dist/api.js
14
14
  var X402_PAYER_API_VERSION = 1;
@@ -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-JOVLOWPY.js";
5
+ } from "./chunk-MGDBSENK.js";
6
6
 
7
7
  // src/lib/task-access-grants.ts
8
8
  import { promises as fs } from "fs";
@@ -8,7 +8,7 @@ import {
8
8
  unsafeHostPath,
9
9
  withFileLock,
10
10
  writeAtomic
11
- } from "./chunk-HWDFJ5N7.js";
11
+ } from "./chunk-IRKICJEV.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-UXZ5ZDBF.js";
19
+ } from "./chunk-YS3YH7U3.js";
20
20
  import {
21
21
  getTaskmarketHome
22
- } from "./chunk-JOVLOWPY.js";
22
+ } from "./chunk-MGDBSENK.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-3FI5KV44.js";
5
+ } from "./chunk-XZZKUMHQ.js";
6
6
  import {
7
7
  READ_AUTH_ADDRESS_HEADER,
8
8
  READ_AUTH_SIGNATURE_HEADER,
9
9
  buildReadAuthMessage
10
- } from "./chunk-JOVLOWPY.js";
10
+ } from "./chunk-MGDBSENK.js";
11
11
 
12
12
  // src/lib/read-auth.ts
13
13
  async function signReadAuth(signal) {
@@ -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-JOVLOWPY.js";
4
+ } from "./chunk-MGDBSENK.js";
5
5
  import {
6
6
  AgentLaunchError
7
7
  } from "./chunk-YM4S6IE4.js";
@@ -12321,7 +12321,7 @@ function runDataChecks(spec, input2) {
12321
12321
  ...head,
12322
12322
  passed: false,
12323
12323
  skipped: true,
12324
- detail: "runs in the CLI: taskmarket task precheck --yes"
12324
+ detail: "runs in the CLI: taskmarket task submit --dry-run --yes"
12325
12325
  };
12326
12326
  }
12327
12327
  if (check.kind === "patch_applies") {
@@ -12329,7 +12329,7 @@ function runDataChecks(spec, input2) {
12329
12329
  ...head,
12330
12330
  passed: false,
12331
12331
  skipped: true,
12332
- detail: "runs in the CLI: taskmarket task precheck --dir <checkout> --patch <file>"
12332
+ detail: "runs in the CLI: taskmarket task submit --dry-run --dir <checkout> --patch <file>"
12333
12333
  };
12334
12334
  }
12335
12335
  if (PATCH_DETECTORS.has(check.kind)) {
@@ -12337,7 +12337,7 @@ function runDataChecks(spec, input2) {
12337
12337
  ...head,
12338
12338
  passed: false,
12339
12339
  skipped: true,
12340
- detail: "needs the patch: taskmarket task precheck --dir <checkout> --patch <file>"
12340
+ detail: "needs the patch: taskmarket task submit --dry-run --dir <checkout> --patch <file>"
12341
12341
  };
12342
12342
  }
12343
12343
  if (deliverable.type !== "file") {
@@ -12448,8 +12448,28 @@ function hiddenChecksResult(spec) {
12448
12448
  detail: `${n} hidden check${n === 1 ? "" : "s"}; they cannot be run locally, the verifier runs them`
12449
12449
  };
12450
12450
  }
12451
- function taskChecksPassed(results) {
12452
- return results.filter((r) => r.kind !== "hidden").every((r) => r.passed && !r.skipped);
12451
+ var FORMAT_EXTENSIONS = {
12452
+ csv: [".csv"],
12453
+ json: [".json"],
12454
+ jsonl: [".jsonl", ".ndjson"],
12455
+ text: []
12456
+ };
12457
+ var PATCH_EXTENSIONS = [".patch", ".diff"];
12458
+ var hasExtension = (name, extensions) => extensions.some((ext) => name.toLowerCase().endsWith(ext));
12459
+ function taskCheckedFiles(spec, names) {
12460
+ if (spec.deliverable.type !== "file")
12461
+ return [];
12462
+ const extensions = FORMAT_EXTENSIONS[spec.deliverable.format] ?? [];
12463
+ if (extensions.length === 0)
12464
+ return [...names];
12465
+ const matching = names.filter((name) => hasExtension(name, extensions));
12466
+ return matching.length > 0 ? matching : names.length === 1 ? [...names] : [];
12467
+ }
12468
+ function taskCheckedPatch(names) {
12469
+ return names.find((name) => hasExtension(name, PATCH_EXTENSIONS));
12470
+ }
12471
+ function taskChecksFailures(results) {
12472
+ return results.filter((r) => !r.passed && !r.skipped);
12453
12473
  }
12454
12474
 
12455
12475
  // ../../packages/shared/dist/lib/dreams.js
@@ -19242,7 +19262,9 @@ export {
19242
19262
  runDataChecks,
19243
19263
  runPatchChecks,
19244
19264
  hiddenChecksResult,
19245
- taskChecksPassed,
19265
+ taskCheckedFiles,
19266
+ taskCheckedPatch,
19267
+ taskChecksFailures,
19246
19268
  dreamsToUsd,
19247
19269
  formatDreams,
19248
19270
  compareSubmissionVersionsNewestFirst,
@@ -22,7 +22,7 @@ import {
22
22
  unresolvedCount,
23
23
  updateSyncState,
24
24
  uploadWorkspace
25
- } from "./chunk-HWDFJ5N7.js";
25
+ } from "./chunk-IRKICJEV.js";
26
26
  import {
27
27
  AgentLaunchError
28
28
  } from "./chunk-YM4S6IE4.js";
@@ -9,7 +9,7 @@ import {
9
9
  paymentProtocolFor,
10
10
  taskmarketChain,
11
11
  verifierProviderId
12
- } from "./chunk-JOVLOWPY.js";
12
+ } from "./chunk-MGDBSENK.js";
13
13
 
14
14
  // src/lib/idempotency.ts
15
15
  import { randomUUID } from "crypto";
@@ -15,7 +15,7 @@ import {
15
15
  readMppTempoChallenge,
16
16
  reconcileX402Payment,
17
17
  withX402FileLock
18
- } from "./chunk-5IOQEQH3.js";
18
+ } from "./chunk-F532X4HL.js";
19
19
  import {
20
20
  ApiError,
21
21
  apiGet,
@@ -36,14 +36,14 @@ import {
36
36
  withChainId,
37
37
  withIdempotentWrite,
38
38
  withTapSignature
39
- } from "./chunk-3FI5KV44.js";
39
+ } from "./chunk-XZZKUMHQ.js";
40
40
  import {
41
41
  ComputeCreditBuyOutputSchema,
42
42
  ComputeCreditPricingSchema,
43
43
  ComputeCreditStatusOutputSchema,
44
44
  apiErrorEnvelopeOf,
45
45
  getTaskmarketHome
46
- } from "./chunk-JOVLOWPY.js";
46
+ } from "./chunk-MGDBSENK.js";
47
47
 
48
48
  // src/lib/x402-fee.ts
49
49
  import { randomUUID as randomUUID3 } from "crypto";
@@ -10,16 +10,16 @@ import {
10
10
  listX402Payments,
11
11
  loadX402Policy,
12
12
  rpcUrlForNetwork
13
- } from "./chunk-5IOQEQH3.js";
13
+ } from "./chunk-F532X4HL.js";
14
14
  import {
15
15
  createWalletAccountFromKeystore,
16
16
  keystoreExists,
17
17
  loadKeystore
18
- } from "./chunk-3FI5KV44.js";
18
+ } from "./chunk-XZZKUMHQ.js";
19
19
  import {
20
20
  getTaskmarketHome,
21
21
  taskmarketChain
22
- } from "./chunk-JOVLOWPY.js";
22
+ } from "./chunk-MGDBSENK.js";
23
23
  import {
24
24
  AgentLaunchError
25
25
  } from "./chunk-YM4S6IE4.js";
@@ -6,14 +6,14 @@ import {
6
6
  loadDeliverableRecord,
7
7
  readComputeView,
8
8
  taskStage
9
- } from "./chunk-QRMNHEUF.js";
9
+ } from "./chunk-FN5FZ4RL.js";
10
10
  import {
11
11
  activeClaim,
12
12
  captureProblem,
13
13
  killedSession,
14
14
  loadSyncState,
15
15
  orphanOf
16
- } from "./chunk-HWDFJ5N7.js";
16
+ } from "./chunk-IRKICJEV.js";
17
17
  import {
18
18
  allocationViews,
19
19
  channelView,
@@ -21,14 +21,14 @@ import {
21
21
  openAgentChannels,
22
22
  uncertainPurchases,
23
23
  withdrawalHatch
24
- } from "./chunk-IN6WPBUK.js";
24
+ } from "./chunk-Z7MFEW73.js";
25
25
  import {
26
26
  apiUrl,
27
27
  selectedNetwork
28
- } from "./chunk-3FI5KV44.js";
28
+ } from "./chunk-XZZKUMHQ.js";
29
29
  import {
30
30
  SandboxListOutputSchema
31
- } from "./chunk-JOVLOWPY.js";
31
+ } from "./chunk-MGDBSENK.js";
32
32
  import {
33
33
  AgentLaunchError
34
34
  } from "./chunk-YM4S6IE4.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-4Q67KT6T.js";
5
- import "./chunk-QRMNHEUF.js";
6
- import "./chunk-HWDFJ5N7.js";
7
- import "./chunk-UXZ5ZDBF.js";
4
+ } from "./chunk-ZMPMQTQQ.js";
5
+ import "./chunk-FN5FZ4RL.js";
6
+ import "./chunk-IRKICJEV.js";
7
+ import "./chunk-YS3YH7U3.js";
8
8
  import {
9
9
  AGENT_COMPATIBILITY,
10
10
  assertAgentCompatibility,
@@ -16,19 +16,19 @@ import {
16
16
  loadAgentPolicy,
17
17
  openAgentChannels,
18
18
  railChainIdHex
19
- } from "./chunk-IN6WPBUK.js";
19
+ } from "./chunk-Z7MFEW73.js";
20
20
  import {
21
21
  getX402PolicyPath,
22
22
  loadX402Policy,
23
23
  rpcUrlForNetwork
24
- } from "./chunk-5IOQEQH3.js";
24
+ } from "./chunk-F532X4HL.js";
25
25
  import {
26
26
  apiUrl,
27
27
  keystoreExists,
28
28
  loadKeystore,
29
29
  withChainId
30
- } from "./chunk-3FI5KV44.js";
31
- import "./chunk-JOVLOWPY.js";
30
+ } from "./chunk-XZZKUMHQ.js";
31
+ import "./chunk-MGDBSENK.js";
32
32
  import "./chunk-YM4S6IE4.js";
33
33
  import {
34
34
  AGENT_VIEW_VERSION