@wport/cli 0.2.2 → 0.5.0
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 +31 -4
- package/README.md +28 -0
- package/dist/index.js +1219 -41
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,37 @@
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [0.5.0] — 2026-07-07
|
|
9
|
+
|
|
10
|
+
pm_41 企業 CLI 補完:人才庫、召募活動、公司資料、用量查詢,以及職缺複製/關閉。命令樹至此完整覆蓋 PRD §6.1 企業模式全部命令。
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `wport enterprise talents`:`list`(`--tab` / `--job` / `--keyword` / `--from` / `--to` / 分頁 / `--fields` / `--minimal`)、`view <enc_resume_id>`、`respond <enc_resume_id> --subject --body|--body-file`。強制分頁、PII 白名單、無 bulk export。
|
|
15
|
+
- `wport enterprise campaigns`:`list` / `view` / `create --file` / `update --file` / `publish` / `unpublish`(可逆,故無 `--confirm`;不開放 delete)。
|
|
16
|
+
- `wport enterprise company`:`view` / `update --file` / `logo upload`(v1 子集欄位;`uniform_number` 唯讀,update DTO 天然不含)。
|
|
17
|
+
- `wport enterprise usage`:查月配額與 rate limit 剩餘(`GET /api/v1/enterprise/usage`)。
|
|
18
|
+
- `wport enterprise jobs copy <enc_id>` / `jobs close <enc_id>`(close 為破壞性、需 `--confirm`);`jobs list` 新增統計欄位 `published_at` / `clicks_7d`(形狀向後相容)。
|
|
19
|
+
- 新增 `readTextInput()` helper:支援 `--body-file`(檔案或 `-` stdin)讀入純文字訊息內文。
|
|
20
|
+
|
|
21
|
+
### Notes
|
|
22
|
+
|
|
23
|
+
- 所有寫入命令自動產生 `Idempotency-Key`(可用 `--idempotency-key` 覆寫);破壞性寫入(`jobs delete` / `jobs close` / `jobs batch`)無 `--confirm` 一律本地 exit 2、不發請求。
|
|
24
|
+
- ⚠️ 需要後端已部署對應 pm_41 端點(talents / campaigns / company / usage / jobs copy·close)。對未部署環境會回 404。
|
|
25
|
+
|
|
26
|
+
## [0.4.0] — 2026-07-02
|
|
27
|
+
|
|
28
|
+
企業 API 金鑰治理 + 職缺寫入。
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- `wport enterprise keys`:`list`(顯示 enc_id + 末 4 碼掩碼)、`rotate <enc_id>`(key-for-key 換發,`--reveal` 才顯示新明文全文、`--expiry-days` 設到期)。過期金鑰仍可用於 `rotate`。
|
|
33
|
+
- `wport enterprise jobs` 寫入全套:`create --file` / `update --file` / `publish` / `unpublish` / `delete`(需 `--confirm`)/ `batch --file`。
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- 修正 `enterprise-client` 的 401 提示:金鑰**過期**時引導 `wport enterprise keys rotate`(重 login 同一把過期 key 仍 401、解不了),撤銷/錯誤才引導 `login`。
|
|
38
|
+
|
|
8
39
|
## [0.2.2] — 2026-06-30
|
|
9
40
|
|
|
10
41
|
**無 CLI 邏輯/原始碼變動**(`src/` 行為與 0.2.1 相同),純清理打包進 npm 的文件死連結。registry 上 0.2.1 的 `repository` / `homepage` 與 README/CHANGELOG 仍指向私有 `W101-TalentSearchHub` repo(公開使用者點了 404),npm 已發布版本不可覆寫,故 bump PATCH 重新發布以覆蓋呈現。
|
|
@@ -36,10 +67,6 @@
|
|
|
36
67
|
- `--status published|unpublished` filter (mapped to the server's numeric contract; sending the
|
|
37
68
|
openapi.yaml string enum `active|inactive|deleted` is rejected at the CLI layer to prevent 400s).
|
|
38
69
|
|
|
39
|
-
## [Unreleased]
|
|
40
|
-
|
|
41
|
-
下一輪變更會寫在這裡。
|
|
42
|
-
|
|
43
70
|
---
|
|
44
71
|
|
|
45
72
|
## [0.1.3] — 2026-06-02
|
package/README.md
CHANGED
|
@@ -65,6 +65,34 @@ wport enterprise whoami
|
|
|
65
65
|
wport enterprise jobs list --status published
|
|
66
66
|
wport enterprise jobs view <enc_id>
|
|
67
67
|
|
|
68
|
+
# Create / update / publish jobs (writes are idempotent; destructive ops need --confirm)
|
|
69
|
+
wport enterprise jobs create --file new-job.json
|
|
70
|
+
wport enterprise jobs publish <enc_id>
|
|
71
|
+
wport enterprise jobs copy <enc_id>
|
|
72
|
+
wport enterprise jobs close <enc_id> --confirm
|
|
73
|
+
|
|
74
|
+
# View / update your company profile
|
|
75
|
+
wport enterprise company view
|
|
76
|
+
wport enterprise company update --file company-patch.json
|
|
77
|
+
wport enterprise company logo upload ./logo.png
|
|
78
|
+
|
|
79
|
+
# Talent pool: browse applicants and reply (no bulk export by design)
|
|
80
|
+
wport enterprise talents list --tab applied
|
|
81
|
+
wport enterprise talents view <enc_resume_id>
|
|
82
|
+
wport enterprise talents respond <enc_resume_id> --subject "Interview invite" --body-file reply.txt
|
|
83
|
+
|
|
84
|
+
# Recruitment campaigns
|
|
85
|
+
wport enterprise campaigns list --status open
|
|
86
|
+
wport enterprise campaigns create --file campaign.json
|
|
87
|
+
wport enterprise campaigns publish <enc_id>
|
|
88
|
+
|
|
89
|
+
# API key governance: list your keys, rotate an expired one in place
|
|
90
|
+
wport enterprise keys list
|
|
91
|
+
wport enterprise keys rotate <enc_id> --reveal
|
|
92
|
+
|
|
93
|
+
# Monthly quota + rate-limit headroom
|
|
94
|
+
wport enterprise usage
|
|
95
|
+
|
|
68
96
|
# Agent / CI friendly: no key on disk
|
|
69
97
|
WPORT_API_KEY=wpk_live_... wport enterprise jobs list --minimal --output json
|
|
70
98
|
|