siluzan-tso-cli 1.1.26 → 1.1.27-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.
Files changed (30) hide show
  1. package/README.md +2 -1
  2. package/dist/index.js +721 -102
  3. package/dist/skill/AGENTS.md +3 -1
  4. package/dist/skill/SKILL.md +5 -4
  5. package/dist/skill/_meta.json +2 -2
  6. package/dist/skill/assets/market-analysis-rules.md +134 -0
  7. package/dist/skill/references/README.md +3 -1
  8. package/dist/skill/references/accounts/accounts.md +18 -4
  9. package/dist/skill/references/accounts/finance.md +32 -32
  10. package/dist/skill/references/accounts/open-account-google-ui.md +1 -1
  11. package/dist/skill/references/analytics/market-analysis-guide.md +118 -0
  12. package/dist/skill/references/analytics/rag.md +1 -1
  13. package/dist/skill/references/analytics/reporting.md +5 -5
  14. package/dist/skill/references/analytics/website-diagnosis-guide.md +3 -3
  15. package/dist/skill/references/core/agent-conventions.md +1 -1
  16. package/dist/skill/references/core/cli-enums.md +140 -0
  17. package/dist/skill/references/core/playbooks.md +35 -2
  18. package/dist/skill/references/core/setup.md +5 -5
  19. package/dist/skill/references/core/skill-authoring.md +1 -1
  20. package/dist/skill/references/core/tips.md +1 -1
  21. package/dist/skill/references/core/workflows.md +4 -4
  22. package/dist/skill/references/misc/tso-home.md +2 -2
  23. package/dist/skill/report-templates/market-analysis-report.md +40 -0
  24. package/dist/skill/report-templates/website-diagnosis-report.html +1869 -420
  25. package/dist/skill/report-templates/website-diagnosis-report.md +11 -1
  26. package/dist/skill/report-templates/website-diagnosis-report.runtime.js +0 -0
  27. package/dist/skill/scripts/install.ps1 +3 -3
  28. package/dist/skill/scripts/install.sh +3 -3
  29. package/eval/cases/no-legacy-json-flag.scenario.json +1 -1
  30. package/package.json +1 -1
@@ -14,7 +14,17 @@
14
14
  | **完整报告** | 用户点「查看详情」→ `/v3/foreign_trade/tso/websiteAnalysisReport?key=…` → **Vue 整页 HTML**(`WebsiteAnalysisReport/v3`) |
15
15
  | 导出 | 报告页内可导出 PDF |
16
16
 
17
- **siluzan-tso Skill / 纯 CLI 场景**:无 Vue 运行时,Agent 须**自行生成单文件 HTML**(章节与下表一致),版式可参考 `report-templates/report-template.html` `website-diagnosis-report.html`(骨架)。
17
+ **siluzan-tso Skill / 纯 CLI 场景**:**Agent 只产出诊断 JSON**;终稿 HTML **必须**由 CLI 生成,**禁止** Agent 现场手写/拼接 HTML:
18
+
19
+ ```bash
20
+ siluzan-tso website-diagnosis render --data ./diagnosis.json [--collect ./collect.json] --out ./website-diagnosis-report.html
21
+ ```
22
+
23
+ 模板源码:
24
+ - `report-templates/website-diagnosis-report.html` — 结构与样式(对齐 MarkAI v3)
25
+ - `report-templates/website-diagnosis-report.runtime.js` — `parseAIResultData` + ECharts 渲染逻辑
26
+
27
+ `render` 会向输出目录写入 HTML + runtime.js,并注入 `window.__WEBSITE_DIAGNOSIS__`。
18
28
 
19
29
  ---
20
30
 
@@ -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.26'
12
+ $PKG_VERSION = '1.1.27-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.26"
12
+ readonly PKG_VERSION="1.1.27-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
@@ -2,7 +2,7 @@
2
2
  "id": "no-legacy-json-flag",
3
3
  "description": "禁止使用过时的 --json flag",
4
4
  "turns": [
5
- "请用 siluzan-tso list-accounts -m Google --quick --json 拉账户列表。"
5
+ "请用 siluzan-tso list-accounts -m Google --json-out ./snap 拉账户列表。"
6
6
  ],
7
7
  "judgeExpectation": "路径:结构化拉数应使用 --json-out,不得使用已移除的 --json。",
8
8
  "skillMapping": "references/core/tips.md · 仅 --json-out",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siluzan-tso-cli",
3
- "version": "1.1.26",
3
+ "version": "1.1.27-beta.2",
4
4
  "description": "Siluzan 广告账户管理 CLI — 查询账户、余额、消耗数据,管理绑定关系与充值。",
5
5
  "keywords": [
6
6
  "ad-account",