@wport/cli 0.10.1 → 0.10.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@
5
5
 
6
6
  ---
7
7
 
8
+ ## [0.10.2] — 2026-09-10
9
+
10
+ ### Fixed
11
+
12
+ - **`enterprise company replace` 正確區分 409 衝突原因**:`profile_revision_conflict` 仍提示重新讀取並確認;`idempotency_conflict` 改提示更換 `Idempotency-Key`,不再誤導使用者重新讀取資料。`company update` 的 `video_links` 路徑同步修正。
13
+ - 修正企業公司區塊刪除確認訊息的空格,並在 `replace --help` 與 README 補充硬刪、`enc_id` 備份還原限制與範例。
14
+
8
15
  ## [0.10.1] — 2026-09-10
9
16
 
10
17
  ### Changed
package/README.md CHANGED
@@ -98,8 +98,14 @@ wport enterprise company logo upload ./logo.png
98
98
  # is never auto-retried — re-run `company view` and retry.
99
99
  wport enterprise company update --file company-video-links.json --confirm
100
100
 
101
- # Replace an entire profile block (full replacement items not listed are deleted;
102
- # any deletion needs --confirm, whether from a non-empty submission or an empty one)
101
+ # Replace an entire profile block. This is a hard replacement: items not listed are deleted,
102
+ # not soft-deleted; any deletion needs --confirm, whether from a non-empty submission or an
103
+ # empty one. Before deleting, save a backup. A view backup cannot be restored as-is after
104
+ # deletion because its enc_id values point to rows that no longer exist. Strip enc_id first;
105
+ # restore then creates new rows with new enc_id values:
106
+ wport enterprise company view --output json > company-backup.json
107
+ jq '{items: [.awards[] | del(.enc_id)]}' company-backup.json > awards-restore.json
108
+ wport enterprise company replace awards --file awards-restore.json --confirm
103
109
  wport enterprise company replace pain-points --file pain-points.json --confirm
104
110
  wport enterprise company replace awards --file awards.json
105
111
  wport enterprise company replace milestones --file milestones.json