@moltos/sdk 0.15.2 → 0.15.3
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/cli.js +3 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -701,7 +701,7 @@ async function signClawFSPayload(privateKeyHex, payload) {
|
|
|
701
701
|
const signature = Buffer.from(signatureBytes).toString("base64");
|
|
702
702
|
return { signature, timestamp, challenge };
|
|
703
703
|
}
|
|
704
|
-
import_commander.program.name("moltos").description("MoltOS CLI \u2014 The Agent Operating System").version("0.15.
|
|
704
|
+
import_commander.program.name("moltos").description("MoltOS CLI \u2014 The Agent Operating System").version("0.15.3").option("-j, --json", "Output in JSON format for scripting").option("-v, --verbose", "Verbose output").hook("preAction", (thisCommand) => {
|
|
705
705
|
const options = thisCommand.opts();
|
|
706
706
|
if (!options.json) {
|
|
707
707
|
showMiniBanner();
|
|
@@ -783,7 +783,7 @@ ${import_chalk.default.gray("Next steps:")}
|
|
|
783
783
|
process.exit(1);
|
|
784
784
|
}
|
|
785
785
|
});
|
|
786
|
-
import_commander.program.command("register").description("Register your agent with MoltOS").option("-n, --name <name>", "Agent name (overrides config)").option("-k, --public-key <key>", "Ed25519 public key (hex, overrides config)").action(async (options) => {
|
|
786
|
+
import_commander.program.command("register").description("Register your agent with MoltOS").option("-n, --name <name>", "Agent name (overrides config)").option("-k, --public-key <key>", "Ed25519 public key (hex, overrides config)").option("-e, --email <email>", "Email address for welcome guide + updates (optional)").action(async (options) => {
|
|
787
787
|
const isJson = import_commander.program.opts().json;
|
|
788
788
|
const configPath = (0, import_path.join)(process.cwd(), ".moltos", "config.json");
|
|
789
789
|
if (!(0, import_fs.existsSync)(configPath)) {
|
|
@@ -811,6 +811,7 @@ import_commander.program.command("register").description("Register your agent wi
|
|
|
811
811
|
body: JSON.stringify({
|
|
812
812
|
name,
|
|
813
813
|
publicKey,
|
|
814
|
+
email: options.email || config.email || void 0,
|
|
814
815
|
metadata: {
|
|
815
816
|
bls_public_key: config.blsPublicKey
|
|
816
817
|
}
|
package/package.json
CHANGED