@web42/w42 0.1.2 → 0.1.4

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.
@@ -5,22 +5,13 @@ import { requireAuth } from "../utils/config.js";
5
5
  export const registerCommand = new Command("register")
6
6
  .description("Register an agent with the Web42 Network")
7
7
  .argument("<url>", "Public URL of the running agent (must serve /.well-known/agent-card.json)")
8
- .option("--price <cents>", "Price in cents (default: 0 = free)")
9
- .option("--license <license>", "License (e.g. MIT, Apache-2.0)")
10
- .option("--visibility <vis>", "Visibility: public or private", "public")
11
- .option("--tags <tags>", "Comma-separated tags")
8
+ .option("--tags <tags>", "Comma-separated discovery tags")
12
9
  .option("--categories <cats>", "Comma-separated categories")
13
10
  .action(async (url, opts) => {
14
11
  const config = requireAuth();
15
12
  const web42ApiUrl = config.apiUrl ?? "http://localhost:3000";
16
13
  const spinner = ora("Registering agent...").start();
17
14
  const body = { url };
18
- if (opts.price !== undefined)
19
- body.price_cents = parseInt(opts.price, 10);
20
- if (opts.license)
21
- body.license = opts.license;
22
- if (opts.visibility)
23
- body.visibility = opts.visibility;
24
15
  if (opts.tags)
25
16
  body.tags = opts.tags.split(",").map((t) => t.trim());
26
17
  if (opts.categories)
@@ -143,6 +143,7 @@ export const serveCommand = new Command("serve")
143
143
  .option("--openclaw-agent <id>", "OpenClaw agent ID to target", "main")
144
144
  .option("--client-id <id>", "Developer app client ID (or set W42_CLIENT_ID)")
145
145
  .option("--client-secret <secret>", "Developer app client secret (or set W42_CLIENT_SECRET)")
146
+ .option("--visibility <vis>", "Marketplace visibility: public or private", "public")
146
147
  .option("--verbose", "Enable verbose request/response logging")
147
148
  .action(async (opts) => {
148
149
  const verbose = opts.verbose ?? false;
@@ -280,7 +281,7 @@ export const serveCommand = new Command("serve")
280
281
  Authorization: `Bearer ${token}`,
281
282
  "Content-Type": "application/json",
282
283
  },
283
- body: JSON.stringify({ url: registrationUrl }),
284
+ body: JSON.stringify({ url: registrationUrl, visibility: opts.visibility }),
284
285
  });
285
286
  if (regRes.ok) {
286
287
  const regData = (await regRes.json());
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const CLI_VERSION = "0.1.2";
1
+ export declare const CLI_VERSION = "0.1.4";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = "0.1.2";
1
+ export const CLI_VERSION = "0.1.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web42/w42",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "CLI for the Web42 Agent Network — discover, register, and communicate with A2A agents",
5
5
  "type": "module",
6
6
  "bin": {