@wport/cli 0.7.0 → 0.7.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/CHANGELOG.md +17 -0
- package/dist/index.js +3 -3
- package/package.json +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [0.7.1] — 2026-07-23
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **原始碼移至獨立 repo**:`@wport/cli` 自 W101-TalentSearchHub monorepo 的 `apps/cli`
|
|
13
|
+
拆分為獨立 repo [hotfire-digital/wport-cli](https://github.com/hotfire-digital/wport-cli)
|
|
14
|
+
(`git filter-repo` 抽取,完整保留開發歷史)。
|
|
15
|
+
- `package.json` 補上 `repository` / `homepage` / `bugs.url`,本版起 npm 頁面
|
|
16
|
+
正確顯示原始碼連結。
|
|
17
|
+
- `gen:openapi` 改走 `scripts/gen-from-remote.cjs`(原 monorepo 相對路徑已不存在)。
|
|
18
|
+
|
|
19
|
+
### Notes
|
|
20
|
+
|
|
21
|
+
- CLI 功能與 0.7.0 完全相同,純 metadata / 建置流程調整。
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
8
25
|
## [0.7.0] — 2026-07-15
|
|
9
26
|
|
|
10
27
|
### Removed
|
package/dist/index.js
CHANGED
|
@@ -179,7 +179,7 @@ function isTimeoutAbort(err) {
|
|
|
179
179
|
return false;
|
|
180
180
|
}
|
|
181
181
|
function buildUserAgent() {
|
|
182
|
-
return `wport-cli/${"0.7.
|
|
182
|
+
return `wport-cli/${"0.7.1"} (node ${process.version}; ${process.platform})`;
|
|
183
183
|
}
|
|
184
184
|
function unwrapDataResponse(body) {
|
|
185
185
|
if (body && typeof body === "object" && "success" in body && "data" in body) {
|
|
@@ -985,7 +985,7 @@ function registerDoctorCommand(program2) {
|
|
|
985
985
|
).action(async (_opts, command) => {
|
|
986
986
|
const ctx = resolveContext(command);
|
|
987
987
|
const line = (s = "") => process.stdout.write(s + "\n");
|
|
988
|
-
line(`wport-cli ${"0.7.
|
|
988
|
+
line(`wport-cli ${"0.7.1"}`);
|
|
989
989
|
line(` bundled schema fingerprint: ${"839e8a891dfb"}`);
|
|
990
990
|
line("");
|
|
991
991
|
line("Resolved configuration:");
|
|
@@ -2495,7 +2495,7 @@ function registerEnterpriseCommand(program2) {
|
|
|
2495
2495
|
|
|
2496
2496
|
// src/index.ts
|
|
2497
2497
|
var program = new import_commander.Command();
|
|
2498
|
-
program.name("wport").description("wport CLI \u2014 terminal interface to the W101 Talent Search Hub public API").version("0.7.
|
|
2498
|
+
program.name("wport").description("wport CLI \u2014 terminal interface to the W101 Talent Search Hub public API").version("0.7.1", "-v, --version", "output the CLI version").option("--lang <locale>", "Accept-Language locale: zh-TW | en-US | vi-VN | th-TH | id-ID").option("--api <url>", "override API base URL").option("--output <fmt>", "output format: table | json").option("--no-color", "disable color output").option("--timeout <ms>", "HTTP timeout in milliseconds", (v) => Number(v));
|
|
2499
2499
|
registerJobsCommand(program);
|
|
2500
2500
|
registerConfigCommand(program);
|
|
2501
2501
|
registerDoctorCommand(program);
|
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wport/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "wport CLI — terminal interface to the W101 Talent Search Hub public API",
|
|
5
5
|
"author": "YAO <yao@wport.me>",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/hotfire-digital/wport-cli.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/hotfire-digital/wport-cli#readme",
|
|
6
11
|
"bugs": {
|
|
12
|
+
"url": "https://github.com/hotfire-digital/wport-cli/issues",
|
|
7
13
|
"email": "yao@wport.me"
|
|
8
14
|
},
|
|
9
15
|
"bin": {
|
|
@@ -22,8 +28,7 @@
|
|
|
22
28
|
"LICENSE"
|
|
23
29
|
],
|
|
24
30
|
"scripts": {
|
|
25
|
-
"gen:openapi": "
|
|
26
|
-
"gen:openapi:remote": "node scripts/gen-from-remote.cjs http://localhost:3000/api/api-doc-json src/generated/schema.d.ts",
|
|
31
|
+
"gen:openapi": "node scripts/gen-from-remote.cjs http://localhost:3000/api/api-doc-json src/generated/schema.d.ts",
|
|
27
32
|
"gen:openapi:prod": "node scripts/gen-from-remote.cjs https://api.wport.me/api/api-doc-json src/generated/schema.d.ts",
|
|
28
33
|
"build": "tsup",
|
|
29
34
|
"dev": "tsup --watch",
|