siluzan-tso-cli 1.1.28-beta.4 → 1.1.28-beta.5
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 -2
- package/dist/index.js +3 -1
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/references/analytics/facebook-analysis-guide.md +1 -1
- package/dist/skill/report-templates/meta-period-report.html +19 -4
- package/dist/skill/report-templates/report-template-academic.html +2 -2
- package/dist/skill/report-templates/report-template-dark.html +2 -2
- package/dist/skill/report-templates/report-template-formal.html +2 -2
- package/dist/skill/report-templates/report-template-mobile.html +2 -2
- package/dist/skill/report-templates/report-template-onepager.html +2 -2
- package/dist/skill/report-templates/report-template-print.html +2 -2
- package/dist/skill/report-templates/report-template.html +3 -3
- package/dist/skill/report-templates/website-diagnosis-report.html +2 -2
- package/dist/skill/report-templates/website-diagnosis-report.md +1 -1
- package/dist/skill/scripts/install.ps1 +1 -1
- package/dist/skill/scripts/install.sh +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
### 报告模板外部资源
|
|
33
33
|
|
|
34
|
-
HTML
|
|
34
|
+
HTML 报告模板外部资源:**ECharts** 统一使用 `https://staticpn.siluzan.com/assets/slz/homeCDN/echarts.js`;其余样式/脚本可能引用 `cdn.tailwindcss.com`、`cdnjs.cloudflare.com`、`fonts.googleapis.com` 等。
|
|
35
35
|
|
|
36
36
|
## 1. 环境
|
|
37
37
|
|
|
@@ -51,7 +51,7 @@ siluzan-tso init -d /path/to/skills # 写入自定义目录
|
|
|
51
51
|
siluzan-tso init --force # 强制覆盖已存在文件
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
> **注意**:当前为测试版(1.1.28-beta.
|
|
54
|
+
> **注意**:当前为测试版(1.1.28-beta.5),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
|
|
55
55
|
|
|
56
56
|
| 助手 | 建议 `--ai` |
|
|
57
57
|
| ----------------------- | ------------------------------------ |
|
package/dist/index.js
CHANGED
|
@@ -121873,7 +121873,9 @@ async function runWebsiteDiagnosisRender(opts) {
|
|
|
121873
121873
|
`);
|
|
121874
121874
|
console.log(` \u8FD0\u884C\u65F6\u811A\u672C\uFF1A${runtimeOut}
|
|
121875
121875
|
`);
|
|
121876
|
-
console.log(
|
|
121876
|
+
console.log(
|
|
121877
|
+
"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 HTML \u6587\u4EF6\u5373\u53EF\u67E5\u770B\u56FE\u8868\u4E0E\u5B8C\u6574\u7AE0\u8282\uFF08ECharts\uFF1Astaticpn.siluzan.com/homeCDN/echarts.js\uFF09\u3002\n"
|
|
121878
|
+
);
|
|
121877
121879
|
}
|
|
121878
121880
|
|
|
121879
121881
|
// src/commands/website-diagnosis/register.ts
|
package/dist/skill/_meta.json
CHANGED
|
@@ -142,7 +142,7 @@ siluzan-tso facebook-analysis render \
|
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
- `--snapshot-dir`:与拉数 `--json-out` 同目录;CLI 自动合并 KPI、平台/国家/受众图表、广告组与受众表格。
|
|
145
|
-
- 模板:`report-templates/meta-period-report.html`
|
|
145
|
+
- 模板:`report-templates/meta-period-report.html` 。
|
|
146
146
|
- JSON 字段说明:见 `report-templates/meta-period-report.md` § Agent JSON 结构。
|
|
147
147
|
|
|
148
148
|
---
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
6
6
|
<title>Meta / Facebook 周期分析报告</title>
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
<script src="https://staticpn.siluzan.com/assets/slz/homeCDN/chart.umd.min.js"></script>
|
|
8
9
|
<style>
|
|
9
10
|
:root{--bg:#0f1419;--card:#1a2332;--text:#e7ecf3;--muted:#8b9cb3;--green:#22c55e;--yellow:#eab308;--red:#ef4444;--accent:#3b82f6;--border:#2d3a4f}
|
|
10
11
|
*{box-sizing:border-box}
|
|
@@ -617,13 +618,27 @@ ${renderChecklist(data.actionChecklist)}
|
|
|
617
618
|
}
|
|
618
619
|
|
|
619
620
|
function boot() {
|
|
620
|
-
|
|
621
|
+
var data = window.__META_PERIOD_REPORT__;
|
|
622
|
+
if (!data) return;
|
|
623
|
+
function run() {
|
|
621
624
|
if (document.readyState === "loading") {
|
|
622
|
-
document.addEventListener("DOMContentLoaded", ()
|
|
625
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
626
|
+
renderReport(data);
|
|
627
|
+
});
|
|
623
628
|
} else {
|
|
624
|
-
renderReport(
|
|
629
|
+
renderReport(data);
|
|
625
630
|
}
|
|
626
631
|
}
|
|
632
|
+
if (typeof window.__loadChartJs === "function") {
|
|
633
|
+
window.__loadChartJs(function (err) {
|
|
634
|
+
if (err) {
|
|
635
|
+
console.warn("[meta-period-report]", err.message);
|
|
636
|
+
}
|
|
637
|
+
run();
|
|
638
|
+
});
|
|
639
|
+
} else {
|
|
640
|
+
run();
|
|
641
|
+
}
|
|
627
642
|
}
|
|
628
643
|
|
|
629
644
|
boot();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html>
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<!--
|
|
3
3
|
风格:专业学术(论文式层级、衬线标题、低饱和配色、弱装饰、表格偏「期刊」)
|
|
4
4
|
与 report-template.html 区块结构、data-section-id 一致,可互换填充数据。
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
crossorigin="anonymous"
|
|
47
47
|
referrerpolicy="no-referrer"
|
|
48
48
|
/>
|
|
49
|
-
<script src="https://
|
|
49
|
+
<script src="https://staticpn.siluzan.com/assets/slz/homeCDN/chart.umd.min.js"></script>
|
|
50
50
|
<style>
|
|
51
51
|
@media print {
|
|
52
52
|
body {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html>
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<!--
|
|
3
3
|
风格:演示 / 深色屏显(会议室投屏、深色控制台并列)
|
|
4
4
|
与 report-template.html 的 data-section-id 一致。另见 README 中其它模板。
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
crossorigin="anonymous"
|
|
31
31
|
referrerpolicy="no-referrer"
|
|
32
32
|
/>
|
|
33
|
-
<script src="https://
|
|
33
|
+
<script src="https://staticpn.siluzan.com/assets/slz/homeCDN/chart.umd.min.js"></script>
|
|
34
34
|
<style>
|
|
35
35
|
@media print {
|
|
36
36
|
body {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html>
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<!--
|
|
3
3
|
风格:正式文件 / 公文式(红头线、居中标题、黑框表格、中文序号「一、二、」、少彩色装饰)
|
|
4
4
|
与 report-template.html 区块结构、data-section-id 一致,可互换填充数据。
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
crossorigin="anonymous"
|
|
40
40
|
referrerpolicy="no-referrer"
|
|
41
41
|
/>
|
|
42
|
-
<script src="https://
|
|
42
|
+
<script src="https://staticpn.siluzan.com/assets/slz/homeCDN/chart.umd.min.js"></script>
|
|
43
43
|
<style>
|
|
44
44
|
@media print {
|
|
45
45
|
body {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html>
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<!--
|
|
3
3
|
风格:移动端优先(窄屏单列、大触控留白、表格横向滑动提示)
|
|
4
4
|
与 report-template.html 的 data-section-id 一致;桌面端随 sm: 断点渐进为多列。
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
crossorigin="anonymous"
|
|
31
31
|
referrerpolicy="no-referrer"
|
|
32
32
|
/>
|
|
33
|
-
<script src="https://
|
|
33
|
+
<script src="https://staticpn.siluzan.com/assets/slz/homeCDN/chart.umd.min.js"></script>
|
|
34
34
|
<style>
|
|
35
35
|
@media print {
|
|
36
36
|
body {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html>
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<!--
|
|
3
3
|
风格:对客营销单页(Executive one-pager)
|
|
4
4
|
首屏叙事 + 主 KPI + 主图;第 2–6 节默认折叠(<details>),展开后结构与 report-template.html 一致、data-section-id 不变。
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
crossorigin="anonymous"
|
|
30
30
|
referrerpolicy="no-referrer"
|
|
31
31
|
/>
|
|
32
|
-
<script src="https://
|
|
32
|
+
<script src="https://staticpn.siluzan.com/assets/slz/homeCDN/chart.umd.min.js"></script>
|
|
33
33
|
<style>
|
|
34
34
|
details > summary {
|
|
35
35
|
list-style: none;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html>
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<!--
|
|
3
3
|
风格:极简黑白 / 打印优先(灰阶、无阴影、无圆角装饰、状态不完全依赖色相)
|
|
4
4
|
与 report-template.html 的 data-section-id 一致。打印时图表仍为灰度;正式印刷可导出 PDF 后转灰。
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
crossorigin="anonymous"
|
|
19
19
|
referrerpolicy="no-referrer"
|
|
20
20
|
/>
|
|
21
|
-
<script src="https://
|
|
21
|
+
<script src="https://staticpn.siluzan.com/assets/slz/homeCDN/chart.umd.min.js"></script>
|
|
22
22
|
<style>
|
|
23
23
|
/* 屏幕上也保持「纸面」灰阶;打印增强对比 */
|
|
24
24
|
body {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html>
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<!--
|
|
3
3
|
siluzan-ads 报告 HTML 样式参考(供 AI / 脚本生成成品 HTML 时对齐版式)
|
|
4
4
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
技术栈(均支持 CDN,单文件可离线打开需网络加载资源):
|
|
26
26
|
- Tailwind CSS (cdn.tailwindcss.com):布局、间距、响应式、打印友好浅色底
|
|
27
27
|
- Font Awesome 6 (cdnjs.cloudflare.com):列表与状态图标(类名稳定,便于 AI 输出)
|
|
28
|
-
- ECharts 5 (
|
|
28
|
+
- ECharts 5 (staticpn.siluzan.com/homeCDN/echarts.js):时序、构成、对比(与广告报表 JSON 数组结构天然契合)
|
|
29
29
|
|
|
30
30
|
⚠ 外部网络声明:在浏览器中打开本 HTML 文件时,会向上述 CDN 域名发出网络请求加载样式/脚本。
|
|
31
31
|
如需离线使用,请将对应资源下载到本地并替换下方 <script>/<link> 的 src/href。
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
referrerpolicy="no-referrer"
|
|
77
77
|
/>
|
|
78
78
|
<!-- ECharts 5:图表 -->
|
|
79
|
-
<script src="https://
|
|
79
|
+
<script src="https://staticpn.siluzan.com/assets/slz/homeCDN/chart.umd.min.js"></script>
|
|
80
80
|
<style>
|
|
81
81
|
/* 打印时尽量白底;与 Tailwind Play CDN 并存 */
|
|
82
82
|
@media print {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html>
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<!--
|
|
3
3
|
网站诊断报告 — 对齐 MarkAI WebsiteAnalysisReport/v3(ChatContent → WebsiteGuide)
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
if (dark) document.documentElement.setAttribute("data-theme", "dark");
|
|
20
20
|
})();
|
|
21
21
|
</script>
|
|
22
|
-
<script src="https://
|
|
22
|
+
<script src="https://staticpn.siluzan.com/assets/slz/homeCDN/chart.umd.min.js"></script>
|
|
23
23
|
<style>
|
|
24
24
|
* {
|
|
25
25
|
box-sizing: border-box;
|
|
@@ -49,7 +49,7 @@ siluzan-tso website-diagnosis render --data ./diagnosis.json [--collect ./collec
|
|
|
49
49
|
## 样式与文件约定
|
|
50
50
|
|
|
51
51
|
- 单文件 HTML,`lang` 与用户语言一致(默认 `zh-CN`)。
|
|
52
|
-
-
|
|
52
|
+
- ECharts 统一引用:`https://staticpn.siluzan.com/assets/slz/homeCDN/echarts.js`(与 `report-template.html` 相同)。
|
|
53
53
|
- 落盘建议与 `--json-out` 同目录:`website-diagnosis-report.html`。
|
|
54
54
|
- **推荐生成方式**:`siluzan-tso website-diagnosis render --data <diagnosis.json> [--collect <collect.json>]`
|
|
55
55
|
- **禁止**只交付 Markdown 或纯 JSON 当作最终报告(JSON 可作为中间产物)。
|
|
@@ -9,7 +9,7 @@ $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.28-beta.
|
|
12
|
+
$PKG_VERSION = '1.1.28-beta.5'
|
|
13
13
|
$CLI_BIN = 'siluzan-tso'
|
|
14
14
|
$SKILL_LABEL = 'Siluzan TSO'
|
|
15
15
|
$INSTALL_CMD = 'npm install -g siluzan-tso-cli@beta'
|
|
@@ -9,7 +9,7 @@ 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.28-beta.
|
|
12
|
+
readonly PKG_VERSION="1.1.28-beta.5"
|
|
13
13
|
readonly CLI_BIN="siluzan-tso"
|
|
14
14
|
readonly SKILL_LABEL="Siluzan TSO"
|
|
15
15
|
readonly INSTALL_CMD="npm install -g siluzan-tso-cli@beta"
|