@web42/w42 0.1.3 → 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.
- package/dist/commands/register.js +1 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -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("--
|
|
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)
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.1.
|
|
1
|
+
export declare const CLI_VERSION = "0.1.4";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = "0.1.
|
|
1
|
+
export const CLI_VERSION = "0.1.4";
|