moltlaunch 2.8.0 → 2.9.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.
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3988,6 +3988,27 @@ async function gigRemove(options) {
|
|
|
3988
3988
|
|
|
3989
3989
|
// src/commands/verify-x.ts
|
|
3990
3990
|
async function verifyX(options) {
|
|
3991
|
+
if (!options.tweet) {
|
|
3992
|
+
const codeRes = await fetch(`${APIS.MOLTLAUNCH}/api/agents/${options.agent}/verify-code`);
|
|
3993
|
+
const codeData = await codeRes.json();
|
|
3994
|
+
if (!codeRes.ok || !codeData.code) {
|
|
3995
|
+
console.error(`
|
|
3996
|
+
\u274C ${codeData.error || "Could not fetch verification code"}
|
|
3997
|
+
`);
|
|
3998
|
+
process.exit(1);
|
|
3999
|
+
}
|
|
4000
|
+
if (options.json) {
|
|
4001
|
+
console.log(JSON.stringify({ code: codeData.code }));
|
|
4002
|
+
} else {
|
|
4003
|
+
console.log(`
|
|
4004
|
+
Your verification code: ${codeData.code}`);
|
|
4005
|
+
console.log(`
|
|
4006
|
+
Tweet this code from your agent's X account, then run:`);
|
|
4007
|
+
console.log(` mltl verify-x --agent ${options.agent} --tweet <tweet-url>
|
|
4008
|
+
`);
|
|
4009
|
+
}
|
|
4010
|
+
return;
|
|
4011
|
+
}
|
|
3991
4012
|
const wallet2 = await loadWallet();
|
|
3992
4013
|
const { signature, timestamp, nonce } = await signAction(wallet2, "verify-x", options.agent);
|
|
3993
4014
|
const response = await fetch(`${APIS.MOLTLAUNCH}/api/agents/${options.agent}/verify-x`, {
|
|
@@ -4047,7 +4068,7 @@ program.command("revise").description("Request revision on submitted work (clien
|
|
|
4047
4068
|
program.command("view").description("View full task details, files, and message thread").requiredOption("--task <id>", "Task ID").option("--json", "Output as JSON").action(view);
|
|
4048
4069
|
program.command("message").description("Send or read messages on an active task (client or agent)").requiredOption("--task <id>", "Task ID").option("--content <text>", "Message content (omit to read messages)").option("--json", "Output as JSON").action(message);
|
|
4049
4070
|
program.command("profile").description("View or update your agent profile").requiredOption("--agent <id>", "Agent ID").option("--tagline <text>", "Set tagline").option("--description <text>", "Set long description").option("--website <url>", "Set website URL").option("--twitter <handle>", "Set Twitter handle").option("--github <handle>", "Set GitHub handle").option("--image <url>", "Set profile image URL (overrides token image)").option("--response-time <text>", "Set response time (e.g. '< 1 hour')").option("--json", "Output as JSON").action(profile);
|
|
4050
|
-
program.command("verify-x").description("Verify your X/Twitter account for an agent").requiredOption("--agent <id>", "Agent ID").
|
|
4071
|
+
program.command("verify-x").description("Verify your X/Twitter account for an agent").requiredOption("--agent <id>", "Agent ID").option("--tweet <url>", "URL of tweet containing your verification code").option("--json", "Output as JSON").action(verifyX);
|
|
4051
4072
|
var gigCmd = program.command("gig").description("Manage gig offerings for your agent");
|
|
4052
4073
|
gigCmd.command("create").description("Create a new gig offering").requiredOption("--agent <id>", "Agent ID").requiredOption("--title <text>", "Gig title").requiredOption("--description <text>", "Gig description").requiredOption("--price <eth>", "Price in ETH").requiredOption("--delivery <time>", "Delivery time (e.g. '24h', '3 days')").option("--category <cat>", "Skill category", "general").option("--json", "Output as JSON").action(gigCreate);
|
|
4053
4074
|
gigCmd.command("update").description("Update an existing gig").requiredOption("--agent <id>", "Agent ID").requiredOption("--gig <id>", "Gig ID to update").option("--title <text>", "New title").option("--description <text>", "New description").option("--price <eth>", "New price in ETH").option("--delivery <time>", "New delivery time").option("--category <cat>", "New category").option("--json", "Output as JSON").action(gigUpdate);
|