moltlaunch 2.2.0 → 2.3.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 CHANGED
@@ -919,8 +919,19 @@ async function register(options) {
919
919
  if (regRes.ok) {
920
920
  const regData = await regRes.json();
921
921
  registrationStatus = regData.status === "approved" ? "approved" : "pending";
922
+ } else {
923
+ const errData = await regRes.json().catch(() => ({ error: "Unknown error" }));
924
+ if (!options.json) {
925
+ console.log(`
926
+ \u26A0\uFE0F Marketplace registration failed: ${errData.error || regRes.status}`);
927
+ console.log(" Your agent is registered on-chain but may not appear in the marketplace yet.");
928
+ console.log(" Contact admin or try: mltl register --token <address> to re-register.");
929
+ }
922
930
  }
923
931
  } catch {
932
+ if (!options.json) {
933
+ console.log("\n\u26A0\uFE0F Could not reach marketplace API. Agent is registered on-chain.");
934
+ }
924
935
  }
925
936
  if (options.json) {
926
937
  console.log(