siluzan-tso-cli 1.1.12 → 1.1.13

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.
Files changed (44) hide show
  1. package/README.md +33 -29
  2. package/dist/index.js +2267 -1440
  3. package/dist/skill/SKILL.md +93 -34
  4. package/dist/skill/_meta.json +2 -2
  5. package/dist/skill/assets/campaign-create-template.json +96 -101
  6. package/dist/skill/references/account-analytics.md +64 -62
  7. package/dist/skill/references/accounts.md +130 -130
  8. package/dist/skill/references/clue.md +13 -13
  9. package/dist/skill/references/finance.md +62 -61
  10. package/dist/skill/references/forewarning.md +40 -39
  11. package/dist/skill/references/google-ads-rules/google-ads-account-audit.md +165 -161
  12. package/dist/skill/references/google-ads-rules/google-ads-audience-strategy.md +94 -85
  13. package/dist/skill/references/google-ads-rules/google-ads-campaign-optimization.md +97 -85
  14. package/dist/skill/references/google-ads-rules/google-ads-compliance.md +274 -272
  15. package/dist/skill/references/google-ads-rules/google-ads-conversion-architecture.md +97 -82
  16. package/dist/skill/references/google-ads-rules/google-ads-creative-optimization.md +143 -139
  17. package/dist/skill/references/google-ads-rules/google-ads-keyword-optimization.md +131 -128
  18. package/dist/skill/references/google-ads-rules/google-ads-keyword-strategy.md +175 -173
  19. package/dist/skill/references/google-ads-rules/google-ads-launch-plan-template.md +126 -123
  20. package/dist/skill/references/google-ads-rules/google-ads-pmax-guide.md +86 -73
  21. package/dist/skill/references/google-ads-rules/sensitive-industries.md +43 -8
  22. package/dist/skill/references/google-ads.md +201 -196
  23. package/dist/skill/references/open-account-by-media.md +23 -23
  24. package/dist/skill/references/open-account-google-ui.md +26 -26
  25. package/dist/skill/references/optimize.md +8 -8
  26. package/dist/skill/references/reporting.md +28 -28
  27. package/dist/skill/references/setup.md +10 -7
  28. package/dist/skill/references/tso-home.md +11 -11
  29. package/dist/skill/references/workflows.md +28 -26
  30. package/dist/skill/report-templates/README.md +22 -21
  31. package/dist/skill/report-templates/REPORT-WORKFLOW.md +9 -9
  32. package/dist/skill/report-templates/bing-period-report.md +11 -11
  33. package/dist/skill/report-templates/google-ads-diagnosis.md +86 -86
  34. package/dist/skill/report-templates/google-period-report.md +23 -23
  35. package/dist/skill/report-templates/report-template-academic.html +433 -341
  36. package/dist/skill/report-templates/report-template-dark.html +440 -257
  37. package/dist/skill/report-templates/report-template-formal.html +438 -288
  38. package/dist/skill/report-templates/report-template-mobile.html +456 -241
  39. package/dist/skill/report-templates/report-template-onepager.html +452 -240
  40. package/dist/skill/report-templates/report-template-print.html +355 -243
  41. package/dist/skill/report-templates/report-template.html +485 -392
  42. package/dist/skill/report-templates/tiktok-period-report.md +10 -10
  43. package/package.json +13 -13
  44. package/scripts/postinstall.mjs +3 -1
@@ -10,6 +10,7 @@
10
10
  对应页面:`https://www.siluzan.com/v3/foreign_trade/settings/invoiceInformation`
11
11
 
12
12
  发票抬头是开票申请时使用的公司/企业信息模板,支持三种类型:
13
+
13
14
  - **PI**:形式发票(境外美金账户,英文信息)
14
15
  - **VATI**:增值税普通发票
15
16
  - **VATSI**:增值税专用发票
@@ -76,16 +77,16 @@ siluzan-tso invoice-info delete <id>
76
77
 
77
78
  ### 字段说明
78
79
 
79
- | 选项 | 说明 | PI | VATI/VATSI |
80
- |------|------|----|------------|
81
- | `--company-name` | 公司名称(PI 用英文,VATI/VATSI 用中文) | ✅ | ✅ |
82
- | `--registered-address` | 英文注册地址 | ✅必填 | — |
83
- | `--tax-id` | 税号 | — | ✅必填 |
84
- | `--title` | 发票抬头 | — | ✅必填 |
85
- | `--landline` | 座机号码 | — | ✅必填 |
86
- | `--contact` | 联系人姓名 | ✅ | ✅ |
87
- | `--phone` | 联系人手机号 | ✅ | ✅ |
88
- | `--email` | 推送邮箱 | — | — |
80
+ | 选项 | 说明 | PI | VATI/VATSI |
81
+ | ---------------------- | ---------------------------------------- | ------ | ---------- |
82
+ | `--company-name` | 公司名称(PI 用英文,VATI/VATSI 用中文) | ✅ | ✅ |
83
+ | `--registered-address` | 英文注册地址 | ✅必填 | — |
84
+ | `--tax-id` | 税号 | — | ✅必填 |
85
+ | `--title` | 发票抬头 | — | ✅必填 |
86
+ | `--landline` | 座机号码 | — | ✅必填 |
87
+ | `--contact` | 联系人姓名 | ✅ | ✅ |
88
+ | `--phone` | 联系人手机号 | ✅ | ✅ |
89
+ | `--email` | 推送邮箱 | — | — |
89
90
 
90
91
  ---
91
92
 
@@ -104,15 +105,15 @@ siluzan-tso config show
104
105
 
105
106
  ### 功能总览
106
107
 
107
- | 功能 | 对应页面路径 | CLI 支持 |
108
- |------|-------------|----------|
109
- | 现金充值(单笔) | `/recharge/pay` | ❌ 引导网页 |
110
- | 现金充值(批量) | `/recharge/pay_batch` | ❌ 引导网页 |
111
- | 月结充值 | `/recharge/accountBillingQuota` | ❌ 引导网页 |
112
- | 丝路赞钱包(充值/提现/明细) | `/recharge/siluzanWallet` | ❌ 引导网页 |
113
- | 媒体转账记录 | `/recharge/accountTransfer` | ✅ `transfer` 命令 |
114
- | 开票记录 | `/recharge/invoiceList` | ✅ `invoice list` |
115
- | 开票申请列表 | `/recharge/invoicingApplicationList` | ✅ `invoice billable` / `invoice apply` |
108
+ | 功能 | 对应页面路径 | CLI 支持 |
109
+ | ---------------------------- | ------------------------------------ | --------------------------------------- |
110
+ | 现金充值(单笔) | `/recharge/pay` | ❌ 引导网页 |
111
+ | 现金充值(批量) | `/recharge/pay_batch` | ❌ 引导网页 |
112
+ | 月结充值 | `/recharge/accountBillingQuota` | ❌ 引导网页 |
113
+ | 丝路赞钱包(充值/提现/明细) | `/recharge/siluzanWallet` | ❌ 引导网页 |
114
+ | 媒体转账记录 | `/recharge/accountTransfer` | ✅ `transfer` 命令 |
115
+ | 开票记录 | `/recharge/invoiceList` | ✅ `invoice list` |
116
+ | 开票申请列表 | `/recharge/invoicingApplicationList` | ✅ `invoice billable` / `invoice apply` |
116
117
 
117
118
  ### 引导用户的标准话术
118
119
 
@@ -144,13 +145,13 @@ siluzan-tso config show
144
145
  siluzan-tso transfer list [选项]
145
146
  ```
146
147
 
147
- | 选项 | 说明 |
148
- |------|------|
149
- | `-m, --media <type>` | 媒体类型:`Google \| TikTok \| MetaAd \| BingV2` |
150
- | `-n, --number <no>` | 转账单号 |
151
- | `-s, --status <status>` | 到账状态 |
152
- | `--start / --end <date>` | 日期范围(YYYY-MM-DD) |
153
- | `--json` | 输出原始 JSON |
148
+ | 选项 | 说明 |
149
+ | ------------------------ | ------------------------------------------------ |
150
+ | `-m, --media <type>` | 媒体类型:`Google \| TikTok \| MetaAd \| BingV2` |
151
+ | `-n, --number <no>` | 转账单号 |
152
+ | `-s, --status <status>` | 到账状态 |
153
+ | `--start / --end <date>` | 日期范围(YYYY-MM-DD) |
154
+ | `--json` | 输出原始 JSON |
154
155
 
155
156
  **示例:**
156
157
 
@@ -178,14 +179,14 @@ siluzan-tso transfer list -m Google --json
178
179
  siluzan-tso transfer create -m <媒体> --out <转出ID> --in <转入ID> --amount <金额>
179
180
  ```
180
181
 
181
- | 选项 | 说明 | 必填 |
182
- |------|------|------|
183
- | `-m, --media <type>` | 媒体类型:`Google \| TikTok \| MetaAd \| BingV2` | ✅ |
184
- | `--out <id>` | 转出账户 `mediaCustomerId`(来自 `list-accounts`) | ✅ |
185
- | `--in <id>` | 转入账户 `mediaCustomerId` | ✅ |
186
- | `--amount <amount>` | 转账金额(与账户货币单位一致) | ✅ |
187
- | `--customer-name <name>` | 客户名称备注(可选) | |
188
- | `--json` | 输出原始 JSON | |
182
+ | 选项 | 说明 | 必填 |
183
+ | ------------------------ | -------------------------------------------------- | ---- |
184
+ | `-m, --media <type>` | 媒体类型:`Google \| TikTok \| MetaAd \| BingV2` | ✅ |
185
+ | `--out <id>` | 转出账户 `mediaCustomerId`(来自 `list-accounts`) | ✅ |
186
+ | `--in <id>` | 转入账户 `mediaCustomerId` | ✅ |
187
+ | `--amount <amount>` | 转账金额(与账户货币单位一致) | ✅ |
188
+ | `--customer-name <name>` | 客户名称备注(可选) | |
189
+ | `--json` | 输出原始 JSON | |
189
190
 
190
191
  **示例:**
191
192
 
@@ -207,11 +208,11 @@ siluzan-tso transfer create -m Google --out 1234567890 --in 9876543210 --amount
207
208
  siluzan-tso invoice list [选项]
208
209
  ```
209
210
 
210
- | 选项 | 说明 |
211
- |------|------|
212
- | `-k, --keyword <text>` | 发票号/关键字 |
211
+ | 选项 | 说明 |
212
+ | ------------------------ | ---------------------- |
213
+ | `-k, --keyword <text>` | 发票号/关键字 |
213
214
  | `--start / --end <date>` | 日期范围(YYYY-MM-DD) |
214
- | `--json` | 输出原始 JSON |
215
+ | `--json` | 输出原始 JSON |
215
216
 
216
217
  **示例:**
217
218
 
@@ -239,13 +240,13 @@ siluzan-tso invoice list --json
239
240
  siluzan-tso invoice billable [选项]
240
241
  ```
241
242
 
242
- | 选项 | 说明 |
243
- |------|------|
244
- | `-m, --media <type>` | 媒体类型筛选 |
245
- | `-c, --currency <code>` | 币种,如 `USD \| CNY` |
246
- | `--wallet` | 查询钱包充值可开票记录 |
247
- | `--start / --end <date>` | 日期范围 |
248
- | `--json` | 输出原始 JSON |
243
+ | 选项 | 说明 |
244
+ | ------------------------ | ---------------------- |
245
+ | `-m, --media <type>` | 媒体类型筛选 |
246
+ | `-c, --currency <code>` | 币种,如 `USD \| CNY` |
247
+ | `--wallet` | 查询钱包充值可开票记录 |
248
+ | `--start / --end <date>` | 日期范围 |
249
+ | `--json` | 输出原始 JSON |
249
250
 
250
251
  **示例:**
251
252
 
@@ -304,22 +305,22 @@ siluzan-tso invoice apply \
304
305
  --recipient-email zhang@example.com
305
306
  ```
306
307
 
307
- | 选项 | 说明 | 必填 |
308
- |------|------|------|
309
- | `--bill-ids` | 可开票订单 `entityId`,逗号分隔(来自 `invoice billable --json`) | ✅ |
310
- | `--bill-type` | 账单来源类型:`AmountAccount`(充值开票)\| `WalletRecharge`(钱包开票) | ✅ |
311
- | `--invoice-type` | 发票格式:`PI`(形式发票,境外英文)\| `VATI`(增值税普票)\| `VATSI`(增值税专票) | ✅ |
312
- | `--recipient-name` | 收件人姓名 | ✅ |
313
- | `--recipient-phone` | 收件人手机号 | ✅ |
314
- | `--recipient-email` | 推送邮箱 | — |
315
- | `--company-name-en` | 公司英文名称(PI 必填) | PI✅ |
316
- | `--registered-address-en` | 英文单位地址(PI 必填,与 Web 校验一致) | PI✅ |
317
- | `--company-name` | 公司中文名称(VATI/VATSI 必填) | VATI✅ |
318
- | `--tax-id` | 税号(VATI/VATSI 必填) | VATI✅ |
319
- | `--title` | 发票抬头(VATI/VATSI 必填) | VATI✅ |
320
- | `--company-phone` | 公司座机(VATI/VATSI 必填,对应接口 `InvoiceInfomation.Phone`) | VATI✅ |
321
- | `--media` | 媒体类型(与 `invoice billable` 一致;核对币种时会传给列表接口) | 建议与订单一致 |
322
- | `--skip-currency-check` | 跳过币种与发票类型校验 | — |
308
+ | 选项 | 说明 | 必填 |
309
+ | ------------------------- | ----------------------------------------------------------------------------------- | -------------- |
310
+ | `--bill-ids` | 可开票订单 `entityId`,逗号分隔(来自 `invoice billable --json`) | ✅ |
311
+ | `--bill-type` | 账单来源类型:`AmountAccount`(充值开票)\| `WalletRecharge`(钱包开票) | ✅ |
312
+ | `--invoice-type` | 发票格式:`PI`(形式发票,境外英文)\| `VATI`(增值税普票)\| `VATSI`(增值税专票) | ✅ |
313
+ | `--recipient-name` | 收件人姓名 | ✅ |
314
+ | `--recipient-phone` | 收件人手机号 | ✅ |
315
+ | `--recipient-email` | 推送邮箱 | — |
316
+ | `--company-name-en` | 公司英文名称(PI 必填) | PI✅ |
317
+ | `--registered-address-en` | 英文单位地址(PI 必填,与 Web 校验一致) | PI✅ |
318
+ | `--company-name` | 公司中文名称(VATI/VATSI 必填) | VATI✅ |
319
+ | `--tax-id` | 税号(VATI/VATSI 必填) | VATI✅ |
320
+ | `--title` | 发票抬头(VATI/VATSI 必填) | VATI✅ |
321
+ | `--company-phone` | 公司座机(VATI/VATSI 必填,对应接口 `InvoiceInfomation.Phone`) | VATI✅ |
322
+ | `--media` | 媒体类型(与 `invoice billable` 一致;核对币种时会传给列表接口) | 建议与订单一致 |
323
+ | `--skip-currency-check` | 跳过币种与发票类型校验 | — |
323
324
 
324
325
  **完整示例流程:**
325
326
 
@@ -25,6 +25,7 @@ siluzan-tso forewarning notify-accounts
25
25
  ```
26
26
 
27
27
  输出示例:
28
+
28
29
  ```
29
30
  📱 微信通知对象列表
30
31
 
@@ -45,17 +46,17 @@ siluzan-tso forewarning notify-accounts
45
46
 
46
47
  ## 命令速查
47
48
 
48
- | 命令 | 说明 |
49
- |---|---|
50
- | `forewarning notify-accounts` | 查询可接收通知的微信账户列表(含关注二维码链接) |
51
- | `forewarning list -m Google` | 查询预警规则列表 |
52
- | `forewarning records -m Google` | 查询预警触发记录 |
53
- | `forewarning get -m Google --id <id>` | 获取单条规则详情 |
54
- | `forewarning create ...` | 创建自定义预警规则 |
55
- | `forewarning update --id <id> ...` | 更新已有预警规则 |
56
- | `forewarning start -m Google --id <id>` | 启动已停用的规则 |
57
- | `forewarning stop -m Google --id <id>` | 停止规则 |
58
- | `forewarning delete -m Google --id <id>` | 删除规则 |
49
+ | 命令 | 说明 |
50
+ | ---------------------------------------- | ------------------------------------------------ |
51
+ | `forewarning notify-accounts` | 查询可接收通知的微信账户列表(含关注二维码链接) |
52
+ | `forewarning list -m Google` | 查询预警规则列表 |
53
+ | `forewarning records -m Google` | 查询预警触发记录 |
54
+ | `forewarning get -m Google --id <id>` | 获取单条规则详情 |
55
+ | `forewarning create ...` | 创建自定义预警规则 |
56
+ | `forewarning update --id <id> ...` | 更新已有预警规则 |
57
+ | `forewarning start -m Google --id <id>` | 启动已停用的规则 |
58
+ | `forewarning stop -m Google --id <id>` | 停止规则 |
59
+ | `forewarning delete -m Google --id <id>` | 删除规则 |
59
60
 
60
61
  ---
61
62
 
@@ -63,33 +64,33 @@ siluzan-tso forewarning notify-accounts
63
64
 
64
65
  ### 完整参数
65
66
 
66
- | 参数 | 必填 | 说明 |
67
- |---|---|---|
68
- | `-m, --media` | ✅ | 媒体类型:`Google` \| `TikTok` |
69
- | `--name` | ✅ | 规则名称 |
70
- | `--accounts` | ✅ | 监控的媒体账户 entityId,逗号分隔(由 `list-accounts --json` 查询) |
71
- | `--field` | ✅ | 监控指标,见下表 |
72
- | `--operator` | ✅ | 比较运算符:`GREATER_EQUALS` \| `GREATER` \| `LESS_EQUALS` \| `LESS` \| `EQUALS` |
73
- | `--value` | ✅ | 阈值(数字,单位为人民币元或对应货币) |
74
- | `--scope` | 否 | 执行范围:`Campaign`(默认)\| `AdGroup` \| `Ad` \| `Advertiser` |
75
- | `--days` | 否 | 统计周期(天):`1`(默认)\| `3` \| `7` |
76
- | `--frequency` | 否 | 检查频率:`QuarterHour`(默认,每15分钟)\| `HalfHour` \| `Hour` |
77
- | `--notify` | 否 | 微信通知对象 entityId,逗号分隔(由 `forewarning notify-accounts` 查询) |
78
- | `--notify-by` | 否 | 通知颗粒度:`MediaAccount`(默认,按账户汇总)\| `Action`(按操作逐条,仅 Google 自定义规则) |
67
+ | 参数 | 必填 | 说明 |
68
+ | ------------- | ---- | --------------------------------------------------------------------------------------------- |
69
+ | `-m, --media` | ✅ | 媒体类型:`Google` \| `TikTok` |
70
+ | `--name` | ✅ | 规则名称 |
71
+ | `--accounts` | ✅ | 监控的媒体账户 entityId,逗号分隔(由 `list-accounts --json` 查询) |
72
+ | `--field` | ✅ | 监控指标,见下表 |
73
+ | `--operator` | ✅ | 比较运算符:`GREATER_EQUALS` \| `GREATER` \| `LESS_EQUALS` \| `LESS` \| `EQUALS` |
74
+ | `--value` | ✅ | 阈值(数字,单位为人民币元或对应货币) |
75
+ | `--scope` | 否 | 执行范围:`Campaign`(默认)\| `AdGroup` \| `Ad` \| `Advertiser` |
76
+ | `--days` | 否 | 统计周期(天):`1`(默认)\| `3` \| `7` |
77
+ | `--frequency` | 否 | 检查频率:`QuarterHour`(默认,每15分钟)\| `HalfHour` \| `Hour` |
78
+ | `--notify` | 否 | 微信通知对象 entityId,逗号分隔(由 `forewarning notify-accounts` 查询) |
79
+ | `--notify-by` | 否 | 通知颗粒度:`MediaAccount`(默认,按账户汇总)\| `Action`(按操作逐条,仅 Google 自定义规则) |
79
80
 
80
81
  ### 可监控的指标(--field)
81
82
 
82
- | 字段值 | 含义 |
83
- |---|---|
84
- | `cost` | 广告消耗 |
85
- | `spend` | 广告花费(部分媒体) |
86
- | `CPC` | 每次点击费用 |
87
- | `CPM` | 每千次展示费用 |
88
- | `CPA` | 每次转化费用 |
89
- | `ctr` | 点击率 |
90
- | `conversions_count` | 转化次数 |
91
- | `balance` | 账户余额(账户级预警) |
92
- | `score` | 账户优化得分 |
83
+ | 字段值 | 含义 |
84
+ | ------------------- | ---------------------- |
85
+ | `cost` | 广告消耗 |
86
+ | `spend` | 广告花费(部分媒体) |
87
+ | `CPC` | 每次点击费用 |
88
+ | `CPM` | 每千次展示费用 |
89
+ | `CPA` | 每次转化费用 |
90
+ | `ctr` | 点击率 |
91
+ | `conversions_count` | 转化次数 |
92
+ | `balance` | 账户余额(账户级预警) |
93
+ | `score` | 账户优化得分 |
93
94
 
94
95
  ### 典型用法
95
96
 
@@ -118,10 +119,10 @@ siluzan-tso forewarning create \
118
119
 
119
120
  ## 通知颗粒度(--notify-by)
120
121
 
121
- | 值 | 适用场景 | 行为 |
122
- |---|---|---|
123
- | `MediaAccount`(默认) | 所有媒体、所有规则类型 | 按账户汇总,该账户下有任何匹配操作就发一条通知 |
124
- | `Action` | **仅** Google + 自定义规则(Customization) | 每个触发操作各发一条通知,消息更详细 |
122
+ | 值 | 适用场景 | 行为 |
123
+ | ---------------------- | ------------------------------------------- | ---------------------------------------------- |
124
+ | `MediaAccount`(默认) | 所有媒体、所有规则类型 | 按账户汇总,该账户下有任何匹配操作就发一条通知 |
125
+ | `Action` | **仅** Google + 自定义规则(Customization) | 每个触发操作各发一条通知,消息更详细 |
125
126
 
126
127
  ---
127
128