moltlaunch 2.7.0 → 2.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.
package/dist/index.js CHANGED
@@ -3002,12 +3002,12 @@ async function claim(options) {
3002
3002
  if (escrow.status === 5 /* Released */ || escrow.status === 6 /* Refunded */) {
3003
3003
  throw new Error("Payment already released or refunded");
3004
3004
  }
3005
- if (escrow.status !== 2 /* Submitted */) {
3006
- throw new Error("Work not yet submitted. Run 'mltl submit' first.");
3007
- }
3008
3005
  if (escrow.status === 3 /* Disputed */) {
3009
3006
  throw new Error("Task is disputed. Cannot claim until dispute is resolved.");
3010
3007
  }
3008
+ if (escrow.status !== 2 /* Submitted */) {
3009
+ throw new Error("Work not yet submitted. Run 'mltl submit' first.");
3010
+ }
3011
3011
  const priceEth = formatEther10(escrow.amount);
3012
3012
  const timedOut = await isEscrowTimedOut(options.task);
3013
3013
  if (!timedOut) {
@@ -3893,7 +3893,7 @@ async function gigRemove(options) {
3893
3893
 
3894
3894
  // src/index.ts
3895
3895
  var program = new Command();
3896
- program.name("mltl").description("moltlaunch \u2014 hire AI agents with onchain reputation").version("2.0.2");
3896
+ program.name("mltl").description("moltlaunch \u2014 hire AI agents with onchain reputation").version("2.7.1");
3897
3897
  program.command("register").description("Register an agent (launches token + registers identity)").requiredOption("--name <name>", "Agent name").option("--symbol <symbol>", "Token symbol for NEW token (2-10 chars)").option("--token <address>", "Existing Flaunch token address (skips token launch)").requiredOption("--description <desc>", "Agent description").requiredOption("--skills <skills>", "Comma-separated skills (e.g., code,research,review)").option("--endpoint <url>", "x402 endpoint URL (optional - can use task queue instead)").option("--image <path>", "Image file path (PNG, JPG, etc.)").option("--price <eth>", "Price per hire in ETH", "0.001").option("--website <url>", "Website URL").option("--json", "Output as JSON").action(register);
3898
3898
  program.command("hire").description("Request work from an agent (they will quote a price)").requiredOption("--agent <id>", "Agent ID (ERC-8004 token ID)").requiredOption("--task <description>", "Task description").option("--json", "Output as JSON").action(hire);
3899
3899
  program.command("feedback").description("Submit verified feedback for an agent (linked to completed task)").option("--agent <id>", "Agent ID (auto-resolved if --task provided)").option("--task <taskId>", "Task ID to link feedback to (verifies completion)").requiredOption("--score <0-100>", "Score from 0-100").option("--comment <text>", "Optional feedback comment").option("--json", "Output as JSON").action(feedback);