@lucid-agents/taskmarket 1.7.0 → 1.7.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4197,6 +4197,7 @@ var TaskDropDirectoryResponseSchema = external_exports.object({
4197
4197
  });
4198
4198
 
4199
4199
  // ../../packages/shared/dist/schemas/task.schemas.js
4200
+ var TASK_DESCRIPTION_MAX_LENGTH = 1e4;
4200
4201
  var TaskMode = external_exports.enum(["bounty", "claim", "pitch", "benchmark", "auction"]);
4201
4202
  var TaskVisibility = external_exports.enum(["unlisted", "public", "private"]);
4202
4203
  var SubmissionVisibility = external_exports.enum(["public", "reveal_all", "winner_only", "never"]);
@@ -4262,7 +4263,7 @@ var TaskAwardSchema = external_exports.object({
4262
4263
  rating: external_exports.number().min(0).max(100).nullable()
4263
4264
  });
4264
4265
  var TaskCreateSchema = external_exports.object({
4265
- description: external_exports.string().min(1, "Description is required").max(2e3, "Description is too long"),
4266
+ description: external_exports.string().min(1, "Description is required").max(TASK_DESCRIPTION_MAX_LENGTH, "Description is too long"),
4266
4267
  reward: PositiveUsdcBaseUnitsSchema,
4267
4268
  duration: external_exports.number().positive("Duration must be positive"),
4268
4269
  tags: external_exports.array(external_exports.string()).max(10, "Maximum 10 tags allowed"),
@@ -4516,7 +4517,7 @@ var UpdateTaskInputSchema = external_exports.object({
4516
4517
  pitchDeadline: external_exports.number().int().positive().optional(),
4517
4518
  auctionFloorPrice: UsdcBaseUnitsSchema.optional(),
4518
4519
  auctionStartPrice: UsdcBaseUnitsSchema.optional(),
4519
- description: external_exports.string().max(2e3, "Description is too long").optional(),
4520
+ description: external_exports.string().max(TASK_DESCRIPTION_MAX_LENGTH, "Description is too long").optional(),
4520
4521
  tags: external_exports.array(external_exports.string()).max(10, "Maximum 10 tags allowed").optional(),
4521
4522
  metricDescription: external_exports.string().max(500).optional()
4522
4523
  });
@@ -7014,7 +7015,9 @@ var getCmd = new Command8("get").description("Get task details").argument("<task
7014
7015
  const headers = { ...auth?.headers ?? {}, ...await taskAccessGrantHeaders(taskId) };
7015
7016
  const task = await apiGet(`/api/tasks/${taskId}`, { headers });
7016
7017
  if (!task) {
7017
- printError(`Task not found: ${taskId}`);
7018
+ printError(
7019
+ `Task not found: ${taskId} (or this is a private task you don't have access to -- if you have a password for it, run: taskmarket task unlock ${taskId} --password <password>)`
7020
+ );
7018
7021
  }
7019
7022
  printResult(task);
7020
7023
  });
@@ -7473,7 +7476,7 @@ var refundExpiredCmd = new Command25("refund-expired").description(
7473
7476
  // src/commands/task/reject-submission.ts
7474
7477
  import { Command as Command26 } from "commander";
7475
7478
  var rejectSubmissionCmd = new Command26("reject-submission").description(
7476
- "Reject a spam or low-quality submission (costs 0.01 USDC relay fee). Once all submissions are rejected, the task can be cancelled to recover escrow."
7479
+ "Reject a spam or low-quality submission (costs 0.001 USDC relay fee). Once all submissions are rejected, the task can be cancelled to recover escrow."
7477
7480
  ).argument("<taskId>", "Task ID (0x-prefixed hex)").requiredOption("--worker <address>", "Worker address whose submission to reject").action(async (taskId, opts) => {
7478
7481
  try {
7479
7482
  const result = await x402Post(`/api/tasks/${taskId}/reject-submission`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucid-agents/taskmarket",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "taskmarket": "./dist/index.js"