siluzan-tso-cli 1.1.56 → 1.1.57-beta.2
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 +2 -1
- package/dist/index.js +334 -26
- package/dist/skill/SKILL.md +2 -1
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/references/accounts/accounts-balance-stats.md +23 -0
- package/dist/skill/references/accounts/accounts-list.md +1 -1
- package/dist/skill/references/accounts/accounts-permissions.md +2 -2
- package/dist/skill/references/accounts/finance.md +1 -1
- package/dist/skill/references/accounts/open-account-by-media.md +1 -1
- package/dist/skill/references/accounts/open-account-google-ui.md +1 -1
- package/dist/skill/references/analytics/rag.md +1 -1
- package/dist/skill/references/analytics/reporting.md +5 -5
- package/dist/skill/references/core/agent-conventions.md +4 -1
- package/dist/skill/references/core/playbooks.md +5 -2
- package/dist/skill/references/core/setup.md +5 -5
- package/dist/skill/references/core/workflows.md +1 -1
- package/dist/skill/references/misc/tso-home.md +2 -2
- package/dist/skill/references/report-templates/bing-period-report.md +1 -1
- package/dist/skill/references/report-templates/google-period-report.md +1 -1
- package/dist/skill/references/report-templates/google-quarterly-plan.md +2 -0
- package/dist/skill/references/report-templates/google-quarterly-report.md +2 -0
- package/dist/skill/references/report-templates/meta-period-report.md +1 -1
- package/dist/skill/references/report-templates/tiktok-period-report.md +1 -1
- package/dist/skill/references/report-templates/yandex-period-report.md +1 -1
- package/dist/skill/report-templates/bing-period-report.html +14 -2
- package/dist/skill/report-templates/bing-period-report.md +1 -1
- package/dist/skill/report-templates/google-period-report.html +14 -2
- package/dist/skill/report-templates/google-period-report.md +1 -1
- package/dist/skill/report-templates/google-quarterly-plan.md +2 -0
- package/dist/skill/report-templates/google-quarterly-report.html +20 -10
- package/dist/skill/report-templates/google-quarterly-report.md +2 -0
- package/dist/skill/report-templates/meta-period-report.html +6 -2
- package/dist/skill/report-templates/meta-period-report.md +1 -1
- package/dist/skill/report-templates/tiktok-period-report.html +14 -2
- package/dist/skill/report-templates/tiktok-period-report.md +1 -1
- package/dist/skill/report-templates/yandex-period-report.html +15 -1
- package/dist/skill/report-templates/yandex-period-report.md +1 -1
- package/dist/skill/scripts/install.ps1 +3 -3
- package/dist/skill/scripts/install.sh +3 -3
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
数据块:总览、系列/组/广告、视频素材、受众(含性别/年龄/兴趣合并)(**以 `--json-out` 实际字段为准**)。
|
|
7
7
|
|
|
8
|
-
**默认交付:HTML(`tiktok-analysis render` 注入 Agent JSON 生成;禁止手写/拼接 HTML)**。用户指定 Excel 时 Agent 脚本写 xlsx
|
|
8
|
+
**默认交付:HTML(`tiktok-analysis render` 注入 Agent JSON 生成;禁止手写/拼接 HTML)**。用户指定 Excel 时 Agent 脚本写 xlsx。封面按日期写成「季度」或「月度」,对不上仍是「账户分析」。不要打开 HTML 改称呼。
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -445,6 +445,12 @@
|
|
|
445
445
|
(function () {
|
|
446
446
|
"use strict";
|
|
447
447
|
|
|
448
|
+
/** 只读 render 注入的 periodChrome,规则与 report-period.ts 相同。 */
|
|
449
|
+
function periodWord(data, neutral) {
|
|
450
|
+
const unit = data && data.periodChrome && data.periodChrome.unit;
|
|
451
|
+
return unit === "季度" || unit === "月度" ? unit : neutral;
|
|
452
|
+
}
|
|
453
|
+
|
|
448
454
|
const EMPTY_NOTE = "本节暂无数据";
|
|
449
455
|
|
|
450
456
|
function escapeHtml(s) {
|
|
@@ -703,7 +709,9 @@
|
|
|
703
709
|
" 数据报告";
|
|
704
710
|
return (
|
|
705
711
|
'<div class="wrap hero">' +
|
|
706
|
-
'<div class="eyebrow">YANDEX DIRECT ·
|
|
712
|
+
'<div class="eyebrow">YANDEX DIRECT · ' +
|
|
713
|
+
periodWord(data, "账户") +
|
|
714
|
+
"分析报告</div>" +
|
|
707
715
|
"<h1>" +
|
|
708
716
|
escapeHtml(title) +
|
|
709
717
|
"</h1>" +
|
|
@@ -1470,6 +1478,12 @@
|
|
|
1470
1478
|
'<div class="wrap"><div class="panel empty-note">未找到报告数据(window.__YANDEX_PERIOD_REPORT__ 为空),请通过 `yandex-analysis render` 生成本文件。</div></div>';
|
|
1471
1479
|
return;
|
|
1472
1480
|
}
|
|
1481
|
+
const cover = periodWord(data, "账户");
|
|
1482
|
+
document.title =
|
|
1483
|
+
(data.meta && data.meta.accountName ? data.meta.accountName + " · " : "") +
|
|
1484
|
+
"Yandex 广告" +
|
|
1485
|
+
cover +
|
|
1486
|
+
"分析报告";
|
|
1473
1487
|
root.innerHTML = renderAll(data);
|
|
1474
1488
|
bindNav();
|
|
1475
1489
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> 统计区间:`{startDate}` ~ `{endDate}`(**不能晚于今天**;省略默认近 7 天含今天)
|
|
4
4
|
> 账户:`{mediaCustomerId}`(如 `porg-xxx`,与 `list-accounts -m Yandex` 一致)
|
|
5
|
-
> **默认交付物**:一份可打开的 **HTML 文件**(`yandex-period-report.html
|
|
5
|
+
> **默认交付物**:一份可打开的 **HTML 文件**(`yandex-period-report.html`,样式对齐开发样例)。封面按日期写成「季度」或「月度」,对不上仍是「账户分析」。不要打开 HTML 改称呼。
|
|
6
6
|
> 用户**未指定格式**时一律走下方 **标准四步流程**;**禁止** Agent 手写/拼接 HTML。
|
|
7
7
|
> **用户明确要求 Excel / xlsx** 时:拉数步骤不变,改为 Agent 脚本写 `.xlsx`;**不要**调用 `yandex-analysis render`;禁止假设存在内置 excel 子命令。见 `yandex-period-report-excel.md`。
|
|
8
8
|
|
|
@@ -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.
|
|
12
|
+
$PKG_VERSION = '1.1.57-beta.2'
|
|
13
13
|
$CLI_BIN = 'siluzan-tso'
|
|
14
14
|
$SKILL_LABEL = 'Siluzan TSO'
|
|
15
|
-
$INSTALL_CMD = 'npm install -g siluzan-tso-cli'
|
|
16
|
-
$WEB_BASE = 'https://www.siluzan.com'
|
|
15
|
+
$INSTALL_CMD = 'npm install -g siluzan-tso-cli@beta'
|
|
16
|
+
$WEB_BASE = 'https://www-ci.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.
|
|
12
|
+
readonly PKG_VERSION="1.1.57-beta.2"
|
|
13
13
|
readonly CLI_BIN="siluzan-tso"
|
|
14
14
|
readonly SKILL_LABEL="Siluzan TSO"
|
|
15
|
-
readonly INSTALL_CMD="npm install -g siluzan-tso-cli"
|
|
16
|
-
readonly WEB_BASE="https://www.siluzan.com"
|
|
15
|
+
readonly INSTALL_CMD="npm install -g siluzan-tso-cli@beta"
|
|
16
|
+
readonly WEB_BASE="https://www-ci.siluzan.com"
|
|
17
17
|
|
|
18
18
|
# -- Constants ----------------------------------------------------------------
|
|
19
19
|
readonly NODE_MAJOR_MIN=18
|