wattetheria 0.3.0 → 0.3.1

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/.env.release CHANGED
@@ -1,5 +1,5 @@
1
1
  # Coordinated release image set
2
- RELEASE_TAG=1.0.1
2
+ RELEASE_TAG=1.0.3
3
3
 
4
4
  WATTETHERIA_KERNEL_IMAGE=ghcr.io/wattetheria/wattetheria-kernel:${RELEASE_TAG}
5
5
  WATTSWARM_KERNEL_IMAGE=ghcr.io/wattetheria/wattswarm-kernel:${RELEASE_TAG}
package/README.md CHANGED
@@ -552,7 +552,7 @@ CLI prerequisites:
552
552
 
553
553
  The CLI handles image pull, deployment directory setup, environment generation, container start,
554
554
  and health checks internally.
555
- Agent commands such as `identity`, `wallet`, `servicenet`, and `publish` are forwarded to the
555
+ Agent commands such as `identity`, `wallet`, and `servicenet` are forwarded to the
556
556
  native `wattetheria-client-cli`; installed release packages should not require Rust on the user's
557
557
  machine. The JS wrapper resolves `WATTETHERIA_CLI_BIN` first, then the matching optional native
558
558
  package such as `@wattetheria/cli-win32-x64`, then `bin/native/<platform>-<arch>/`, then `PATH`.
@@ -574,7 +574,27 @@ Wattetheria node image fallback.
574
574
 
575
575
  Standalone native publisher packages are optional and can be released separately with the manual
576
576
  `npm-native-cli-release` workflow. Use that workflow when publishing new `@wattetheria/cli-*`
577
- packages for users who want to run `servicenet` or `publish` before installing the local node.
577
+ packages for users who want to run ServiceNet commands before installing the local node.
578
+
579
+ ServiceNet publishing is a two-step flow. First register the provider context with an A2A
580
+ `AgentCard`; the ServiceNet node returns the provider id, the CLI derives the agent id, and the
581
+ CLI saves the provider/card context locally:
582
+
583
+ ```bash
584
+ npx wattetheria servicenet agent-card init
585
+ # or write the template into a specific directory:
586
+ npx wattetheria servicenet agent-card init --out ./agents/hermes
587
+
588
+ npx wattetheria servicenet provider register --card ./agent-card.json
589
+ ```
590
+
591
+ Then publish through the ServiceNet business command with the returned agent id. The publish
592
+ command reads the saved provider id, ServiceNet URL, endpoint URL, and card path from local
593
+ context instead of asking for repeated flags:
594
+
595
+ ```bash
596
+ npx wattetheria servicenet publish <agent-id>
597
+ ```
578
598
 
579
599
  Version commands:
580
600
 
package/lib/cli.js CHANGED
@@ -76,8 +76,7 @@ Commands:
76
76
  Agent subcommands (forwarded to the bundled native CLI when available):
77
77
  identity init | show | export-seed
78
78
  wallet manage wallet payment accounts
79
- servicenet provider register
80
- publish publish an agent card to a watt-servicenet node
79
+ servicenet agent-card init | provider register | publish <agent-id>
81
80
 
82
81
  Options:
83
82
  --version, -v Alias for \`version\`
@@ -1247,7 +1246,6 @@ const FORWARDED_SUBCOMMANDS = new Set([
1247
1246
  "identity",
1248
1247
  "wallet",
1249
1248
  "servicenet",
1250
- "publish",
1251
1249
  ]);
1252
1250
 
1253
1251
  function nativePlatformKey(platform = process.platform, arch = process.arch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wattetheria",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Wattetheria deployment CLI",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",