@bluevs/ttcli 0.0.8 → 0.0.9
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/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluevs/ttcli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "TikTok CLI - designed for AI Agent and developers",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ttcli": "scripts/run.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
-
"postinstall": "
|
|
9
|
+
"postinstall": "bash $(npm root -g)/@bluevs/ttcli/skills/ttcli/scripts/install-skill.sh 2>&1 || echo '⚠️ skill auto-sync skipped (likely permission/container env). Run manually: bash $(npm root -g)/@bluevs/ttcli/skills/ttcli/scripts/install-skill.sh'"
|
|
10
10
|
},
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@bluevs/ttcli-darwin-arm64": "0.0.
|
|
13
|
-
"@bluevs/ttcli-darwin-x64": "0.0.
|
|
14
|
-
"@bluevs/ttcli-linux-arm64": "0.0.
|
|
15
|
-
"@bluevs/ttcli-linux-x64": "0.0.
|
|
16
|
-
"@bluevs/ttcli-win32-arm64": "0.0.
|
|
17
|
-
"@bluevs/ttcli-win32-x64": "0.0.
|
|
12
|
+
"@bluevs/ttcli-darwin-arm64": "0.0.9",
|
|
13
|
+
"@bluevs/ttcli-darwin-x64": "0.0.9",
|
|
14
|
+
"@bluevs/ttcli-linux-arm64": "0.0.9",
|
|
15
|
+
"@bluevs/ttcli-linux-x64": "0.0.9",
|
|
16
|
+
"@bluevs/ttcli-win32-arm64": "0.0.9",
|
|
17
|
+
"@bluevs/ttcli-win32-x64": "0.0.9"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=16"
|
package/skills/ttcli/SKILL.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ttcli
|
|
3
|
-
version: 0.0.
|
|
3
|
+
version: 0.0.9
|
|
4
4
|
description: 直接调用 TikTok Marketing API(access token 鉴权,不经 VH 平台/项目层)。当用户提供原生 TikTok access_token + advertiser_id、要直连 TikTok 创建或查询 Smart+ campaign/adgroup/ad、或查 identity/app/region 等元数据时使用。注意:用户走 VH 项目流程(po_xxxx + account_id)的 TikTok 创编应改走 vhcli tiktok。
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# TikTok CLI (`ttcli`)
|
|
8
8
|
|
|
9
|
-
> **Skill version**: `0.0.
|
|
9
|
+
> **Skill version**: `0.0.9`
|
|
10
10
|
>
|
|
11
11
|
> 当用户问"ttcli skill 版本是多少 / skill 装好了吗 / 升级生效了没" 时,**直接念出上面的版本号**。
|
|
12
12
|
> 用户期望更高版本但没看到 → 让他们:(1) 重跑 `npm install -g @bluevs/ttcli && bash $(npm root -g)/@bluevs/ttcli/skills/ttcli/scripts/install-skill.sh` (2) 然后**新开一个会话**(skill 在会话启动时加载,老会话不刷新)。
|
|
@@ -64,7 +64,14 @@ get_version() {
|
|
|
64
64
|
# ============================================================
|
|
65
65
|
# 方向 A:确保 ttcli CLI 可用
|
|
66
66
|
# ============================================================
|
|
67
|
+
# 注意:当 install-skill.sh 是从 npm postinstall 被调起时(npm_lifecycle_event=postinstall),
|
|
68
|
+
# CLI 还在 install 流程中、没 link 到 PATH 是正常状态——这里**跳过 check_cli**避免触发
|
|
69
|
+
# 递归 `npm install -g @bluevs/ttcli`。npm 当前进程跑完后 CLI 自然就到位了。
|
|
67
70
|
check_cli() {
|
|
71
|
+
if [ "${npm_lifecycle_event:-}" = "postinstall" ]; then
|
|
72
|
+
echo "ℹ️ postinstall 上下文,跳过 CLI 自检(npm install 完成后 CLI 自然到位)"
|
|
73
|
+
return 0
|
|
74
|
+
fi
|
|
68
75
|
if command -v ttcli &>/dev/null; then
|
|
69
76
|
echo "✅ ttcli CLI ready ($(ttcli --help 2>&1 | head -1 || echo 'ok'))"
|
|
70
77
|
return 0
|