@wport/cli 0.10.0 → 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,23 @@
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
+
15
+ ## [0.10.1] — 2026-09-10
16
+
17
+ ### Changed
18
+
19
+ - **`enterprise usage` 輸出標明計量語意**:月配額行改為 `X / Y calls used`,並加一行說明
20
+ 「所有認證通過的 API 呼叫計數;`whoami`/`usage` 與 key rotate 豁免」——對齊後端 2026-09-10
21
+ 上線的 quota PRD 對齊(talent#233:guard 層 per-request 計數,原先只計職缺建立)。
22
+ 純顯示變更,wire 契約與 exit code 不變。(0.10.0 已以 `next` tag 發布、不可覆寫,故以
23
+ patch 版收納本變更。)
24
+
8
25
  ## [0.10.0] — 2026-09-09
9
26
 
10
27
  ### Added
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
@@ -119,7 +125,7 @@ wport enterprise campaigns publish <enc_id>
119
125
  wport enterprise keys list
120
126
  wport enterprise keys rotate <enc_id> --reveal
121
127
 
122
- # Monthly quota + rate-limit headroom
128
+ # Monthly quota (all authenticated API calls) + rate-limit ceiling
123
129
  wport enterprise usage
124
130
 
125
131
  # Agent / CI friendly: no key on disk