@pmate/cli 0.42.0 → 0.42.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/README.md CHANGED
@@ -376,3 +376,19 @@ Install the DevEco SDK, ohpm, Hvigor and Java. Configure DEVECO_SDK_HOME, OHPM_B
376
376
  Builds run in private temporary source/SDK copies. The CLI verifies APP, HAP and embedded module signatures, signer certificate and compiled identity/version, then uploads both files and immutable release.json under harmony/<namespace>/<service>/<versionName>/<versionCode>/ in parrot-static, followed by latest.json. Existing or older versions are rejected. Native service history records the manifest URL. Signing keys and temporary sources are cleaned; logs and verified local outputs remain under ~/.pmate/harmony-builds/ by default. Publication means OSS distribution, not AppGallery submission, approval or device installation.
377
377
 
378
378
  HarmonyOS publication uses an ownership-checked service lock in an unversioned OSS bucket and forbid-overwrite for immutable files. It checks the latest version again under the lock. Interrupted publishers may leave a lock; confirm they have stopped before clearing it. The CLI does not automatically steal stale locks.
379
+
380
+ ## Bot profile nicknames
381
+
382
+ ### Background
383
+
384
+ Chat displays a bot profile's `nickName`. To change that display name without changing the bot's internal name, account, credentials, or agent configuration, update the existing profile:
385
+
386
+ ```bash
387
+ pmate account bot profile update --app pmate:merry --name blackbeard --nickname "黑胡子BOT" --json
388
+ # Equivalent shortcut:
389
+ pmate account bot nickname --app pmate:merry --name blackbeard --nickname "黑胡子BOT" --json
390
+ ```
391
+
392
+ `--name` is the bot's internal name, as returned by `pmate account bot list --app pmate:merry --json`. Both commands require an existing CLI login, use the active session, and rely on the auth API's profile update permissions. They require exactly one profile for the bot account in the specified app; missing or multiple profiles cause an error without a write. These commands never create a profile.
393
+
394
+ The CLI updates only `nickName` through `PUT /profile`, then polls the profile index for up to approximately 10 seconds and returns the verified profile. A matching nickname is a no-op. If verification times out, the update may already have been applied; inspect the profile before retrying. `--base-url` selects the auth API for all requests.
package/dist/index.d.ts CHANGED
@@ -471,6 +471,14 @@ type AccountCommandArgs = {
471
471
  role?: "practitioner" | "mate";
472
472
  baseUrl?: string;
473
473
  json: boolean;
474
+ } | {
475
+ type: Command.Account;
476
+ action: "bot-profile-update";
477
+ app: string;
478
+ name: string;
479
+ nickName: string;
480
+ baseUrl?: string;
481
+ json: boolean;
474
482
  } | {
475
483
  type: Command.Account;
476
484
  action: "access-key-create";