@ttmg/cli 0.4.6-vibe-beta.20 → 0.4.6-vibe-beta.21
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 +3 -3
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/vibe-upload.md +5 -5
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
### @ttmg/cli
|
|
2
2
|
|
|
3
|
-
`0.4.6-vibe-beta.
|
|
3
|
+
`0.4.6-vibe-beta.21`:兼容后端返回的 TikTok 客户端授权地址,二维码直接使用 `landing_url`,不再因非网页协议中断任务轮询。扫码授权后自动上传,并持续查询同一任务;左侧保留原码用于「查看进度」,右侧从加载态切换为「扫码预览」。
|
|
4
4
|
|
|
5
|
-
Version `0.4.6-vibe-beta.
|
|
5
|
+
Version `0.4.6-vibe-beta.21`: the authorization QR uses the backend `landing_url` directly, including TikTok client schemes, so task polling continues. After authorization, the CLI uploads and polls the same task; the original progress QR remains on the left while the preview QR appears on the right when ready.
|
|
6
6
|
|
|
7
7
|
默认总等待时间为 30 分钟,`--timeout <seconds>` 最长可设 60 分钟。页面在任务进行中保持可用,CLI 结束后再保留 30 分钟;失败仍保留上传回执,勿直接重传。页面随浏览器语言显示中英文。
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@ Vibe 版本支持手机扫码授权上传、可选 `--description`、分类查
|
|
|
26
26
|
固定版本安装(发布标签为 `vibe-beta`):
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npm install -g @ttmg/cli@0.4.6-vibe-beta.
|
|
29
|
+
npm install -g @ttmg/cli@0.4.6-vibe-beta.21
|
|
30
30
|
ttmg --version
|
|
31
31
|
ttmg capabilities --format json
|
|
32
32
|
ttmg upload --help
|
package/dist/index.js
CHANGED
|
@@ -16386,7 +16386,7 @@ async function authStatus(options = {}) {
|
|
|
16386
16386
|
return result;
|
|
16387
16387
|
}
|
|
16388
16388
|
|
|
16389
|
-
var version = "0.4.6-vibe-beta.
|
|
16389
|
+
var version = "0.4.6-vibe-beta.21";
|
|
16390
16390
|
var engines = {
|
|
16391
16391
|
node: ">=20.19.1 <21 || >=22"
|
|
16392
16392
|
};
|
|
@@ -18758,6 +18758,7 @@ function createBackend(mode, transport) {
|
|
|
18758
18758
|
signal,
|
|
18759
18759
|
});
|
|
18760
18760
|
if (!nonempty(data.import_token) ||
|
|
18761
|
+
!nonempty(data.landing_url) ||
|
|
18761
18762
|
!Number.isFinite(data.poll_interval_seconds) ||
|
|
18762
18763
|
data.poll_interval_seconds <= 0 ||
|
|
18763
18764
|
data.poll_interval_seconds > 3600)
|
|
@@ -18765,7 +18766,7 @@ function createBackend(mode, transport) {
|
|
|
18765
18766
|
return {
|
|
18766
18767
|
taskId: taskId(data.task_id),
|
|
18767
18768
|
importToken: data.import_token,
|
|
18768
|
-
landingUrl:
|
|
18769
|
+
landingUrl: data.landing_url,
|
|
18769
18770
|
pollIntervalSeconds: data.poll_interval_seconds,
|
|
18770
18771
|
};
|
|
18771
18772
|
},
|
|
@@ -19068,7 +19069,7 @@ function createMockBackend(scenario = 'success') {
|
|
|
19068
19069
|
function createAuthorizationScheme(landingUrl) {
|
|
19069
19070
|
// QR and browser authorization use the same backend-provided landing URL.
|
|
19070
19071
|
// Preserve its query exactly; do not wrap it in an app scheme or re-encode it.
|
|
19071
|
-
return
|
|
19072
|
+
return landingUrl;
|
|
19072
19073
|
}
|
|
19073
19074
|
|
|
19074
19075
|
const DEV_PORT = 3000;
|