@pmate/cli 0.20.8 → 0.20.10

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -19429,14 +19429,13 @@ var AgentCommandHandler = class {
19429
19429
  return;
19430
19430
  }
19431
19431
  case "list": {
19432
- const search = args.namespace ? `?namespace=${encodeURIComponent(args.namespace)}` : "";
19433
- const response = await this.request(
19432
+ const items = (await this.request(
19434
19433
  baseUrl,
19435
19434
  token,
19436
19435
  "GET",
19437
- `/agents${search}`
19438
- );
19439
- this.renderList(response.items, args.json);
19436
+ args.namespace ? `/agents?namespace=${encodeURIComponent(args.namespace)}` : "/agents/all"
19437
+ )).items;
19438
+ this.renderList(items, args.json);
19440
19439
  return;
19441
19440
  }
19442
19441
  case "get":
@@ -22787,7 +22786,7 @@ var HELP_TEXT = [
22787
22786
  ` ${import_chalk4.default.gray(" update <ns:objectId> --file <path> [--base-url <url>] [--json]")}`,
22788
22787
  ` ${import_chalk4.default.gray(" rename --from <id> --to <id> --ns <namespace> [--base-url <url>] [--json]")}`,
22789
22788
  ` ${import_chalk4.default.gray(" delete <ns:objectId> [--base-url <url>] [--json]")}`,
22790
- ` ${import_chalk4.default.gray(" default namespace: pmate; default base URL: https://agent-api.pmate.chat")}`,
22789
+ ` ${import_chalk4.default.gray(" list defaults to all namespaces; create defaults to namespace: pmate; default base URL: https://agent-api.pmate.chat")}`,
22791
22790
  ` ${import_chalk4.default.cyan("ns")} Manage registered namespaces`,
22792
22791
  ` ${import_chalk4.default.gray(" list [--chain <chain>] [--base-url <url>] [--json]")}`,
22793
22792
  ` ${import_chalk4.default.gray(" get <namespace> [--chain <chain>] [--base-url <url>] [--json]")}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmate/cli",
3
- "version": "0.20.8",
3
+ "version": "0.20.10",
4
4
  "description": "CLI utilities for the pMate project",
5
5
  "license": "MIT",
6
6
  "bin": {