siluzan-tso-cli 1.1.49-beta.4 → 1.1.49

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 CHANGED
@@ -43,7 +43,7 @@ HTML 报告模板外部资源:**ECharts** 统一使用 `https://staticpn.siluz
43
43
  在**用户的目标项目根目录**执行(根据用户使用的助手选择 `--ai`):
44
44
 
45
45
  ```bash
46
- npm install -g siluzan-tso-cli@beta
46
+ npm install -g siluzan-tso-cli
47
47
  siluzan-tso init --ai cursor # 写入 Cursor(默认)
48
48
  siluzan-tso init --ai cursor,claude # 同时写入多个平台
49
49
  siluzan-tso init --ai all # 写入所有支持的平台
@@ -51,7 +51,6 @@ siluzan-tso init -d /path/to/skills # 写入自定义目录
51
51
  siluzan-tso init --force # 强制覆盖已存在文件
52
52
  ```
53
53
 
54
- > **注意**:当前为测试版(1.1.49-beta.4),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
55
54
 
56
55
  | 助手 | 建议 `--ai` |
57
56
  | ----------------------- | ------------------------------------ |
package/dist/index.js CHANGED
@@ -4018,7 +4018,7 @@ var DEFAULT_API_BASE;
4018
4018
  var init_defaults = __esm({
4019
4019
  "src/config/defaults.ts"() {
4020
4020
  "use strict";
4021
- DEFAULT_API_BASE = "https://tso-api-ci.siluzan.com";
4021
+ DEFAULT_API_BASE = "https://tso-api.siluzan.com";
4022
4022
  }
4023
4023
  });
4024
4024
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "slug": "siluzan-tso",
3
- "version": "1.1.49-beta.4",
4
- "publishedAt": 1788313426269
3
+ "version": "1.1.49",
4
+ "publishedAt": 1788320087878
5
5
  }
@@ -167,7 +167,7 @@ siluzan-tso account-history --start 2026-03-01 --end 2026-03-31 --json-out ./sna
167
167
  | 状态 | 含义 | 下一步操作 |
168
168
  | ---------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
169
169
  | `Pending` | 审核中 | 等待,可反复运行此命令轮询;审核周期因媒体而异 |
170
- | `Approved` | 审核通过 | 运行 `list-accounts -m <媒体>` 确认账户已出现;引导用户充值激活(`config show` 取 `webUrl`,按 `finance.md` 打开对应媒体充值页;例如 Google 为 `https://www-ci.siluzan.com/v3/foreign_trade/tso/recharge/pay?mediaType=Google`;Yandex 当前没有对应充值界面) |
170
+ | `Approved` | 审核通过 | 运行 `list-accounts -m <媒体>` 确认账户已出现;引导用户充值激活(`config show` 取 `webUrl`,按 `finance.md` 打开对应媒体充值页;例如 Google 为 `https://www.siluzan.com/v3/foreign_trade/tso/recharge/pay?mediaType=Google`;Yandex 当前没有对应充值界面) |
171
171
  | `Rejected` | 被拒 | 查看 `--json-out` 落盘中的 `reason` 字段了解拒绝原因;修改资料后重新提交;若原因不明,引导用户联系丝路赞客服 |
172
172
 
173
173
  ---
@@ -490,7 +490,7 @@ siluzan-tso account email-deauth -c <mediaCustomerId> --invitation-id <id> --res
490
490
 
491
491
  | 功能 | 媒体 | 网页路径 |
492
492
  | --------------------------------------- | ------ | ------------------------------------------------- |
493
- | **账户激活**(邀请他人激活 / 充值激活) | Google | `https://www-ci.siluzan.com/v3/foreign_trade/tso/manageAccounts` |
493
+ | **账户激活**(邀请他人激活 / 充值激活) | Google | `https://www.siluzan.com/v3/foreign_trade/tso/manageAccounts` |
494
494
 
495
495
  **Agent 建议话术**:
496
496
 
@@ -499,5 +499,5 @@ siluzan-tso account email-deauth -c <mediaCustomerId> --invitation-id <id> --res
499
499
  siluzan-tso config show # 查看 webUrl 字段
500
500
 
501
501
  # 账户激活(Google)→ 引导至账户管理页
502
- # https://www-ci.siluzan.com/v3/foreign_trade/tso/manageAccounts
502
+ # https://www.siluzan.com/v3/foreign_trade/tso/manageAccounts
503
503
  ```
@@ -126,7 +126,7 @@ siluzan-tso config show
126
126
 
127
127
  ### 充值页链接(按媒体 × 类型)
128
128
 
129
- 链接模式:`https://www-ci.siluzan.com/v3/foreign_trade/tso/recharge/<page>?mediaType=<mediaType>`;丝路赞钱包:`https://www-ci.siluzan.com/v3/foreign_trade/tso/recharge/siluzanWallet`(无媒体参数)。
129
+ 链接模式:`https://www.siluzan.com/v3/foreign_trade/tso/recharge/<page>?mediaType=<mediaType>`;丝路赞钱包:`https://www.siluzan.com/v3/foreign_trade/tso/recharge/siluzanWallet`(无媒体参数)。
130
130
 
131
131
  | 充值类型 | `<page>` | 支持媒体(`mediaType` 参数) |
132
132
  | ------------------------- | --------------------- | ------------------------------------------- |
@@ -1,6 +1,6 @@
1
1
  # 各媒体开户
2
2
 
3
- > 网页链接:`https://www-ci.siluzan.com/v3/foreign_trade/tso/accountOpeningHistory?tso=%2Fv3umijs%2Ftso%2FaccountOpeningHistory`
3
+ > 网页链接:`https://www.siluzan.com/v3/foreign_trade/tso/accountOpeningHistory?tso=%2Fv3umijs%2Ftso%2FaccountOpeningHistory`
4
4
  > 多命令串联见 `references/core/workflows.md` § 流程一。
5
5
 
6
6
  ## Contents
@@ -65,7 +65,7 @@ siluzan-tso open-account google-wizard
65
65
 
66
66
  ```bash
67
67
  siluzan-tso account-history -m Google
68
- # 审核通过后:config show → https://www-ci.siluzan.com/v3/foreign_trade/tso/recharge/pay?mediaType=Google
68
+ # 审核通过后:config show → https://www.siluzan.com/v3/foreign_trade/tso/recharge/pay?mediaType=Google
69
69
  ```
70
70
 
71
71
  ---
@@ -1,6 +1,6 @@
1
1
  # rag:知识库检索(TSO 广告投放辅助)
2
2
 
3
- 知识库管理页面在 https://www-ci.siluzan.com/knowledge-base/
3
+ 知识库管理页面在 https://www.siluzan.com/knowledge-base/
4
4
 
5
5
  为 **广告投放、账户分析、拓词、诊断报告** 等 TSO 业务提供**企业已入库**的产品、行业、客户背景事实依据。
6
6
 
@@ -190,9 +190,9 @@ siluzan-tso report push receive-emails -m Google [--json-out ./snap]
190
190
 
191
191
  | 媒体 | 报告类型 | URL 模板 |
192
192
  | ------ | ---------------- | ----------------------------------------------------------- |
193
- | Google | 日报(Daily) | `https://www-ci.siluzan.com/media-report/publish/{entityId}?culture=zh-CN` |
194
- | Google | 小时报(Hourly) | `https://www-ci.siluzan.com/media-report/hour/{entityId}?culture=zh-CN` |
195
- | TikTok | 日报 | `https://www-ci.siluzan.com/media-report/publish/{entityId}?culture=zh-CN` |
193
+ | Google | 日报(Daily) | `https://www.siluzan.com/media-report/publish/{entityId}?culture=zh-CN` |
194
+ | Google | 小时报(Hourly) | `https://www.siluzan.com/media-report/hour/{entityId}?culture=zh-CN` |
195
+ | TikTok | 日报 | `https://www.siluzan.com/media-report/publish/{entityId}?culture=zh-CN` |
196
196
 
197
197
  `entityId` 来自 `siluzan-tso report list --json-out ./snap` 中每条记录的 `entityId` 字段。
198
198
 
@@ -205,8 +205,8 @@ siluzan-tso report list -m Google --json-out ./snap
205
205
 
206
206
  # 第二步:查看 webUrl
207
207
  siluzan-tso config show
208
- # webUrl: https://www-ci.siluzan.com
208
+ # webUrl: https://www.siluzan.com
209
209
 
210
210
  # 第三步:拼接链接(Google 日报)
211
- # https://www-ci.siluzan.com/media-report/publish/rpt_abc123?culture=zh-CN
211
+ # https://www.siluzan.com/media-report/publish/rpt_abc123?culture=zh-CN
212
212
  ```
@@ -10,7 +10,7 @@
10
10
  ## 安装 CLI
11
11
 
12
12
  ```bash
13
- npm install -g siluzan-tso-cli@beta
13
+ npm install -g siluzan-tso-cli
14
14
  ```
15
15
 
16
16
  ---
@@ -64,7 +64,7 @@ siluzan-tso config set --api-key <Key> # 或 config 直接写入
64
64
  siluzan-tso config set --token <Token> # 备用:设置 JWT Token
65
65
  ```
66
66
 
67
- API Key 获取入口:`https://www-ci.siluzan.com/v3/foreign_trade/settings/apiKeyManagement`
67
+ API Key 获取入口:`https://www.siluzan.com/v3/foreign_trade/settings/apiKeyManagement`
68
68
 
69
69
  ```bash
70
70
  # 第 1 步:让用户报出手机号后,立刻发码(命令立即返回,不会等待输入)
@@ -127,9 +127,9 @@ siluzan-tso config show
127
127
 
128
128
  ```
129
129
  构建环境 : production
130
- apiBaseUrl : https://tso-api-ci.siluzan.com
131
- googleApiUrl : https://googleapi-ci.mysiluzan.com
132
- webUrl : https://www-ci.siluzan.com
130
+ apiBaseUrl : https://tso-api.siluzan.com
131
+ googleApiUrl : https://googleapi.mysiluzan.com
132
+ webUrl : https://www.siluzan.com
133
133
  apiKey : abcd****1234
134
134
  ```
135
135
 
@@ -6,7 +6,7 @@
6
6
  siluzan-tso config show # 取 webUrl
7
7
  ```
8
8
 
9
- 首页地址:`https://www-ci.siluzan.com/v3/foreign_trade/tso/home`
9
+ 首页地址:`https://www.siluzan.com/v3/foreign_trade/tso/home`
10
10
 
11
11
  ---
12
12
 
@@ -25,7 +25,7 @@ siluzan-tso config show # 取 webUrl
25
25
 
26
26
  ## 推荐话术
27
27
 
28
- 1. **「和首页一样的总览」** → 打开 `https://www-ci.siluzan.com/v3/foreign_trade/tso/home`。
28
+ 1. **「和首页一样的总览」** → 打开 `https://www.siluzan.com/v3/foreign_trade/tso/home`。
29
29
  2. **「某个 Google 账户昨天花了多少」** → `list-accounts -m Google` + `stats -m Google -a <id>`。
30
30
  3. **「有待充值账户」** → 说明聚合数据在首页;CLI 可 `list-accounts` + `balance` 逐户排查,或引导充值页。
31
31
 
@@ -306,11 +306,11 @@
306
306
  }
307
307
  .chart-box {
308
308
  position: relative;
309
- height: 300px;
310
- margin: 10px 0 4px;
309
+ height: 400px;
310
+ margin: 16px 0 8px;
311
311
  }
312
312
  .chart-box.sm {
313
- height: 220px;
313
+ height: 320px;
314
314
  }
315
315
  .chart-grid-2 {
316
316
  display: grid;
@@ -538,7 +538,7 @@
538
538
  border-radius: 12px;
539
539
  }
540
540
  .chart-box {
541
- height: clamp(220px, 56vw, 260px);
541
+ height: clamp(280px, 62vw, 360px);
542
542
  }
543
543
  .chart-grid-2 {
544
544
  grid-template-columns: 1fr;
@@ -836,8 +836,8 @@
836
836
  const table =
837
837
  sorted.length > 0
838
838
  ? `<div class="chart-grid-2">
839
- <div id="chart-devices-pie" class="chart-box" style="height:280px"></div>
840
- <div id="chart-devices-bar" class="chart-box" style="height:280px"></div>
839
+ <div id="chart-devices-pie" class="chart-box" style="height:380px"></div>
840
+ <div id="chart-devices-bar" class="chart-box" style="height:380px"></div>
841
841
  </div>
842
842
  <div class="table-wrap"><table>
843
843
  <thead><tr><th>设备</th><th class="num">消耗</th><th class="num">展示</th><th class="num">点击</th><th class="num">CTR</th><th class="num">平均CPC</th><th class="num">转化</th><th class="num">CPA</th></tr></thead>
@@ -875,7 +875,7 @@
875
875
  .join("");
876
876
  const table =
877
877
  sorted.length > 0
878
- ? `<div id="chart-geographic" class="chart-box" style="height:320px"></div>
878
+ ? `<div id="chart-geographic" class="chart-box" style="height:420px"></div>
879
879
  <div class="card-title-row"><h3>地域 Top 10</h3><span class="hint">共 ${rows.length} 个国家/地区,按消耗排序</span></div>
880
880
  <div class="table-wrap"><table>
881
881
  <thead><tr><th>国家/地区</th><th class="num">消耗</th><th class="num">展示</th><th class="num">点击</th><th class="num">CTR</th><th class="num">平均CPC</th><th class="num">转化</th><th class="num">CPA</th></tr></thead>
@@ -966,7 +966,7 @@
966
966
  .join("");
967
967
  const table =
968
968
  sorted.length > 0
969
- ? `<div id="chart-campaigns" class="chart-box" style="height:280px"></div>
969
+ ? `<div id="chart-campaigns" class="chart-box" style="height:380px"></div>
970
970
  <div class="card-title-row"><h3>系列 Top 10</h3><span class="hint">共 ${rows.length} 个系列,按消耗排序</span></div>
971
971
  <div class="table-wrap"><table>
972
972
  <thead><tr><th>广告系列</th><th>状态</th><th class="num">消耗</th><th class="num">展示</th><th class="num">点击</th><th class="num">CTR</th><th class="num">转化</th><th class="num">CPA</th></tr></thead>
@@ -1180,11 +1180,12 @@ ${titleNotice}
1180
1180
  { trigger: "item", formatter: (p) => `${p.name}: ${money(p.value, currency)}` },
1181
1181
  TOOLTIP_STYLE,
1182
1182
  ),
1183
- legend: { bottom: 0, textStyle: { color: AXIS_COLOR } },
1183
+ legend: { bottom: 4, left: "center", textStyle: { color: AXIS_COLOR } },
1184
1184
  series: [
1185
1185
  {
1186
1186
  type: "pie",
1187
- radius: ["42%", "70%"],
1187
+ radius: ["36%", "54%"],
1188
+ center: ["50%", "44%"],
1188
1189
  itemStyle: { borderColor: "#ffffff", borderWidth: 3, borderRadius: 8 },
1189
1190
  data: items.map((d, i) => ({
1190
1191
  name: d[nameKey] || "—",
@@ -1208,7 +1209,7 @@ ${titleNotice}
1208
1209
  { trigger: "axis", formatter: (p) => money(p[0].value, currency) },
1209
1210
  TOOLTIP_STYLE,
1210
1211
  ),
1211
- grid: { left: 140, right: 30, top: 16, bottom: 20 },
1212
+ grid: { left: 140, right: 36, top: 28, bottom: 36 },
1212
1213
  xAxis: styleAxis({ type: "value" }),
1213
1214
  yAxis: styleAxis({
1214
1215
  type: "category",
@@ -347,12 +347,12 @@ window.__META_PERIOD_REPORT__ = window.__META_PERIOD_REPORT__ || null;
347
347
  var daily = charts.daily || {};
348
348
  bindChart(document.getElementById("chartDaily"), {
349
349
  tooltip: { trigger: "axis" },
350
- legend: { data: ["线索", "花费 (" + currency + ")"], textStyle: { color: "#334155" } },
351
- grid: { left: 48, right: 48, top: 40, bottom: 48 },
350
+ legend: { top: 4, left: "center", data: ["线索", "花费 (" + currency + ")"], textStyle: { color: "#334155" } },
351
+ grid: { left: 56, right: 56, top: 48, bottom: 76 },
352
352
  xAxis: { type: "category", data: daily.labels || [], axisLabel: { color: "#64748b", rotate: 45, fontSize: 10 } },
353
353
  yAxis: [
354
- Object.assign({ type: "value", name: "线索", nameTextStyle: { color: "#64748b" } }, axis),
355
- Object.assign({ type: "value", name: "花费", nameTextStyle: { color: "#64748b" }, splitLine: { show: false } }, axis),
354
+ Object.assign({ type: "value", name: "线索", nameLocation: "middle", nameGap: 40, nameTextStyle: { color: "#64748b" } }, axis),
355
+ Object.assign({ type: "value", name: "花费", nameLocation: "middle", nameGap: 40, nameTextStyle: { color: "#64748b" }, splitLine: { show: false } }, axis),
356
356
  ],
357
357
  series: [
358
358
  {
@@ -368,8 +368,8 @@ window.__META_PERIOD_REPORT__ = window.__META_PERIOD_REPORT__ || null;
368
368
  var country = charts.country || {};
369
369
  bindChart(document.getElementById("chartCountry"), {
370
370
  tooltip: { trigger: "axis" },
371
- legend: { data: ["CPL (" + currency + ")", "花费 (" + currency + ")"], textStyle: { color: "#334155" } },
372
- grid: { left: 88, right: 48, top: 40, bottom: 32 },
371
+ legend: { top: 4, left: "center", data: ["CPL (" + currency + ")", "花费 (" + currency + ")"], textStyle: { color: "#334155" } },
372
+ grid: { left: 88, right: 48, top: 56, bottom: 40 },
373
373
  yAxis: { type: "category", data: country.labels || [], axisLabel: { color: "#334155" }, inverse: true },
374
374
  xAxis: [Object.assign({ type: "value" }, axis), Object.assign({ type: "value", splitLine: { show: false } }, axis)],
375
375
  series: [
@@ -386,8 +386,8 @@ window.__META_PERIOD_REPORT__ = window.__META_PERIOD_REPORT__ || null;
386
386
  var aud = charts.audience || {};
387
387
  bindChart(document.getElementById("chartAudience"), {
388
388
  tooltip: { trigger: "axis" },
389
- legend: { data: ["CPL", "线索"], textStyle: { color: "#334155" } },
390
- grid: { left: 48, right: 48, top: 40, bottom: 64 },
389
+ legend: { top: 4, left: "center", data: ["CPL", "线索"], textStyle: { color: "#334155" } },
390
+ grid: { left: 56, right: 56, top: 56, bottom: 80 },
391
391
  xAxis: { type: "category", data: aud.labels || [], axisLabel: { color: "#64748b", rotate: 40, fontSize: 10 } },
392
392
  yAxis: [Object.assign({ type: "value" }, axis), Object.assign({ type: "value", splitLine: { show: false } }, axis)],
393
393
  series: [
@@ -9,11 +9,11 @@ $ErrorActionPreference = 'Stop'
9
9
  # -- Package info (injected at build time) ------------------------------------
10
10
  $PKG_NAME = 'siluzan-tso-cli'
11
11
  # PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
12
- $PKG_VERSION = '1.1.49-beta.4'
12
+ $PKG_VERSION = '1.1.49'
13
13
  $CLI_BIN = 'siluzan-tso'
14
14
  $SKILL_LABEL = 'Siluzan TSO'
15
- $INSTALL_CMD = 'npm install -g siluzan-tso-cli@beta'
16
- $WEB_BASE = 'https://www-ci.siluzan.com'
15
+ $INSTALL_CMD = 'npm install -g siluzan-tso-cli'
16
+ $WEB_BASE = 'https://www.siluzan.com'
17
17
 
18
18
  # -- Constants ----------------------------------------------------------------
19
19
  $NODE_MAJOR_MIN = 18
@@ -9,11 +9,11 @@ set -euo pipefail
9
9
  # -- Package info (injected at build time) ------------------------------------
10
10
  readonly PKG_NAME="siluzan-tso-cli"
11
11
  # PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
12
- readonly PKG_VERSION="1.1.49-beta.4"
12
+ readonly PKG_VERSION="1.1.49"
13
13
  readonly CLI_BIN="siluzan-tso"
14
14
  readonly SKILL_LABEL="Siluzan TSO"
15
- readonly INSTALL_CMD="npm install -g siluzan-tso-cli@beta"
16
- readonly WEB_BASE="https://www-ci.siluzan.com"
15
+ readonly INSTALL_CMD="npm install -g siluzan-tso-cli"
16
+ readonly WEB_BASE="https://www.siluzan.com"
17
17
 
18
18
  # -- Constants ----------------------------------------------------------------
19
19
  readonly NODE_MAJOR_MIN=18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siluzan-tso-cli",
3
- "version": "1.1.49-beta.4",
3
+ "version": "1.1.49",
4
4
  "description": "Siluzan 广告账户管理 CLI — 查询账户、余额、消耗数据,管理绑定关系与充值。",
5
5
  "keywords": [
6
6
  "ad-account",