@bluevs/ttcli 0.0.2 → 0.0.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluevs/ttcli",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "TikTok CLI - designed for AI Agent and developers",
5
5
  "bin": {
6
6
  "ttcli": "scripts/run.js"
@@ -9,12 +9,12 @@
9
9
  "postinstall": "node -e \"console.log('\\n📦 ttcli installed. To install the openclaw skill, run:\\n bash $(npm root -g)/@bluevs/ttcli/skills/ttcli/scripts/install-skill.sh\\n')\""
10
10
  },
11
11
  "optionalDependencies": {
12
- "@bluevs/ttcli-darwin-arm64": "0.0.2",
13
- "@bluevs/ttcli-darwin-x64": "0.0.2",
14
- "@bluevs/ttcli-linux-arm64": "0.0.2",
15
- "@bluevs/ttcli-linux-x64": "0.0.2",
16
- "@bluevs/ttcli-win32-arm64": "0.0.2",
17
- "@bluevs/ttcli-win32-x64": "0.0.2"
12
+ "@bluevs/ttcli-darwin-arm64": "0.0.3",
13
+ "@bluevs/ttcli-darwin-x64": "0.0.3",
14
+ "@bluevs/ttcli-linux-arm64": "0.0.3",
15
+ "@bluevs/ttcli-linux-x64": "0.0.3",
16
+ "@bluevs/ttcli-win32-arm64": "0.0.3",
17
+ "@bluevs/ttcli-win32-x64": "0.0.3"
18
18
  },
19
19
  "engines": {
20
20
  "node": ">=16"
@@ -68,7 +68,9 @@ Before creating a campaign or adgroup, gather the IDs you'll reference:
68
68
 
69
69
  ```
70
70
  ttcli auth show # confirm credentials loaded + their source
71
- ttcli app list # → app_id
71
+ ttcli app list # → app_id (Android/iOS apps)
72
+ ttcli minis list # → minis_id (TikTok Minis: MINI_GAME / MINI_SERIES)
73
+ ttcli identity list # → identity_id (Spark Ads publishing identity)
72
74
  ttcli smart-plus campaign list # → existing campaign_id (or you'll create one)
73
75
  ttcli tool region \
74
76
  --placements=PLACEMENT_TIKTOK \
@@ -264,6 +266,8 @@ Per the doc: "对于现有广告账号,当广告组的投放广告位为自动
264
266
 
265
267
  | Need | Endpoint | ttcli command |
266
268
  |---|---|---|
269
+ | List apps under advertiser | `/app/list/` | `ttcli app list` |
270
+ | List Minis under advertiser | `/minis/get/` | `ttcli minis list` |
267
271
  | List identities under advertiser | `/identity/get/` | `ttcli identity list` (filter by `--identity-type`) |
268
272
  | `tiktok_item_id` (Spark Ads) | `/tt_video/info/` | `ttcli tt-video info --auth-code=...` |
269
273
  | List posts under an identity | `/identity/video/get/` | `ttcli identity video list --identity-id=... --identity-type=...` |
@@ -33,12 +33,13 @@ WORKSPACE_SKILL_DIR="$WORKSPACE/skills/ttcli"
33
33
  NPM_ROOT="$(npm root -g 2>/dev/null || echo '')"
34
34
  PKG_DIR="${NPM_ROOT:+$NPM_ROOT/@bluevs/ttcli}"
35
35
 
36
- # 版本来源:尽量从 npm package.json 读;本地 release 时退化为 SKILL.md mtime
36
+ # 版本来源:当 SOURCE_DIR npm 包目录内(post-install 场景)→ npm 包版本号
37
+ # 否则(开发期从仓库跑)→ 用 SKILL.md 的 mtime,确保每次改动都触发同步
37
38
  get_version() {
38
- if [ -n "$PKG_DIR" ] && [ -f "$PKG_DIR/package.json" ]; then
39
+ if [ -n "$PKG_DIR" ] && [ -f "$PKG_DIR/package.json" ] && [[ "$SOURCE_DIR" == "$PKG_DIR"* ]]; then
39
40
  node -p "require('$PKG_DIR/package.json').version" 2>/dev/null && return
40
41
  fi
41
- # 本地 release 模式:用 SKILL.md mtime 当版本戳
42
+ # 开发期 / 仓库源:用 SKILL.md mtime
42
43
  date -r "$SKILL_FILE" "+local-%Y%m%d-%H%M%S" 2>/dev/null || echo "local-unknown"
43
44
  }
44
45